Skip to content

Commit 18269ea

Browse files
Squash some warnings
1 parent 2662133 commit 18269ea

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/main/java/com/rabbitmq/perf/Version.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class Version {
3838
BUILD_TIMESTAMP = getBuildTimestamp();
3939
}
4040

41-
private static final String getVersion() {
41+
private static String getVersion() {
4242
String version;
4343
try {
4444
version = getValueFromPropertyFile("com.rabbitmq.perf.version");
@@ -54,7 +54,7 @@ private static final String getVersion() {
5454
return version;
5555
}
5656

57-
private static final String getBuild() {
57+
private static String getBuild() {
5858
String build;
5959
try {
6060
build = getValueFromPropertyFile("com.rabbitmq.perf.build");
@@ -65,7 +65,7 @@ private static final String getBuild() {
6565
return build;
6666
}
6767

68-
private static final String getBuildTimestamp() {
68+
private static String getBuildTimestamp() {
6969
String build;
7070
try {
7171
build = getValueFromPropertyFile("com.rabbitmq.perf.build.timestamp");
@@ -76,7 +76,7 @@ private static final String getBuildTimestamp() {
7676
return build;
7777
}
7878

79-
private static final String getValueFromPropertyFile(String key) throws Exception {
79+
private static String getValueFromPropertyFile(String key) throws Exception {
8080
InputStream inputStream = Version.class.getClassLoader().getResourceAsStream("rabbitmq-perf-test.properties");
8181
Properties version = new Properties();
8282
try {
@@ -92,22 +92,22 @@ private static final String getValueFromPropertyFile(String key) throws Exceptio
9292
return version.getProperty(key);
9393
}
9494

95-
private static final String getVersionFromPackage() {
95+
private static String getVersionFromPackage() {
9696
if (Version.class.getPackage().getImplementationVersion() == null) {
9797
throw new IllegalStateException("Couldn't get version with Package#getImplementationVersion");
9898
}
9999
return Version.class.getPackage().getImplementationVersion();
100100
}
101101

102-
private static final String getDefaultVersion() {
102+
private static String getDefaultVersion() {
103103
return "0.0.0";
104104
}
105105

106-
private static final String getDefaultBuild() {
106+
private static String getDefaultBuild() {
107107
return "unknown";
108108
}
109109

110-
private static final String getDefaultBuildTimestamp() {
110+
private static String getDefaultBuildTimestamp() {
111111
return "unknown";
112112
}
113113
}

0 commit comments

Comments
 (0)