roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adityasha...@apache.org
Subject [roller] 01/02: Fixed: sonarqube issue - Static non-final field names should comply with a naming convention
Date Tue, 05 Jan 2021 06:17:22 GMT
This is an automated email from the ASF dual-hosted git repository.

adityasharma pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/roller.git

commit c2133b65943652c6c7668ef0dc74ae41c2067434
Author: Aditya Sharma <adityasharma@apache.org>
AuthorDate: Tue Jan 5 11:31:10 2021 +0530

    Fixed: sonarqube issue - Static non-final field names should comply with a naming convention
    
    Renamed the field runtime_config to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
---
 .../java/org/apache/roller/planet/config/PlanetRuntimeConfig.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/app/src/main/java/org/apache/roller/planet/config/PlanetRuntimeConfig.java b/app/src/main/java/org/apache/roller/planet/config/PlanetRuntimeConfig.java
index 1c91d69..706097d 100644
--- a/app/src/main/java/org/apache/roller/planet/config/PlanetRuntimeConfig.java
+++ b/app/src/main/java/org/apache/roller/planet/config/PlanetRuntimeConfig.java
@@ -37,7 +37,7 @@ public class PlanetRuntimeConfig {
 
     private static Log log = LogFactory.getLog(PlanetRuntimeConfig.class);
 
-    private static String runtime_config = "/org/apache/roller/planet/config/planetRuntimeConfigDefs.xml";
+    private static String runtimeConfig = "/org/apache/roller/planet/config/planetRuntimeConfigDefs.xml";
     private static RuntimeConfigDefs configDefs = null;
 
     // prevent instantiations
@@ -109,7 +109,7 @@ public class PlanetRuntimeConfig {
             // unmarshall the config defs file
             try {
                 InputStream is =
-                        PlanetRuntimeConfig.class.getResourceAsStream(runtime_config);
+                        PlanetRuntimeConfig.class.getResourceAsStream(runtimeConfig);
 
                 RuntimeConfigDefsParser parser = new RuntimeConfigDefsParser();
                 configDefs = parser.unmarshall(is);
@@ -139,7 +139,7 @@ public class PlanetRuntimeConfig {
 
         try {
             InputStreamReader reader =
-                    new InputStreamReader(PlanetConfig.class.getResourceAsStream(runtime_config));
+                    new InputStreamReader(PlanetConfig.class.getResourceAsStream(runtimeConfig));
             StringWriter configString = new StringWriter();
 
             char[] buf = new char[8196];


Mime
View raw message