Skip to content

Commit 4c685b2

Browse files
joel-leitchinder123
authored andcommitted
Private constructor (#1324)
* Adding private constructors on Util classes * Remove obsolete step
1 parent d84e26d commit 4c685b2

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

ReleaseProcess.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
The following is a step-by-step procedure for releasing a new version of Google-Gson.
44

55
1. Go through all open bugs and identify which will be fixed in this release. Mark all others with an appropriate release tag. Identify duplicates, and close the bugs that will never be fixed. Fix all bugs for the release, and mark them fixed.
6-
1. (obsolete step) Edit [`pom.xml`](pom.xml) and update the versions listed for Export-Package to the target version. Also add any new Java packages that have been introduced in Gson.
76
1. Ensure all changelists are code-reviewed and have +1
87
1. `cd gson` to the parent directory; ensure there are no open files and all changes are committed.
98
1. Run `mvn release:clean`

gson/src/main/java-templates/com/google/gson/internal/GsonBuildConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,6 @@ public final class GsonBuildConfig {
2727

2828
/** This field is automatically populated by Maven when a build is triggered */
2929
public static final String VERSION = "${project.version}";
30+
31+
private GsonBuildConfig() { }
3032
}

gson/src/main/java/com/google/gson/internal/JavaVersion.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,6 @@ public static int getMajorJavaVersion() {
8787
public static boolean isJava9OrLater() {
8888
return majorJavaVersion >= 9;
8989
}
90+
91+
private JavaVersion() { }
9092
}

0 commit comments

Comments
 (0)