Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warnings #2014

Merged
merged 2 commits into from
Nov 7, 2021
Merged

Conversation

Marcono1234
Copy link
Collaborator

Note: The visibility changes in the test classes are not strictly necessary. Eclipse IDE complained that the exposed types had lower visibility than the exposing field.

@google-cla google-cla bot added the cla: yes label Nov 6, 2021
@@ -35,7 +35,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<includePackageNames>com.google.gson</includePackageNames>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was detected by Eclipse; the maven-javadoc-plugin does not have a parameter with this name (anymore?).

@Marcono1234 Marcono1234 force-pushed the marcono1234/warning-fixes branch from 0823478 to 13a58bf Compare November 6, 2021 20:05
Copy link
Member

@eamonnmcmanus eamonnmcmanus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This is good for hygiene.

@@ -26,8 +26,8 @@
* @author Joel Leitch
*/
public class InnerClassExclusionStrategyTest extends TestCase {
public InnerClass innerClass = new InnerClass();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this change is great. Previously the test showed that this field was excluded, despite being public. Now it's still excluded, but maybe that's because the field is private. It might be better to add comments saying why the fields are public.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point! I have reverted the changes for this test class.

gson/src/test/java/com/google/gson/JsonObjectTest.java Outdated Show resolved Hide resolved
@eamonnmcmanus eamonnmcmanus merged commit ca2ed74 into google:master Nov 7, 2021
@Marcono1234 Marcono1234 deleted the marcono1234/warning-fixes branch November 7, 2021 19:16
tibor-universe pushed a commit to getuniverse/gson that referenced this pull request Nov 21, 2021
* Fix warnings

* Address review feedback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants