diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-02-23 23:26:35 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-02-23 23:26:35 +0100 |
commit | 079096f44a4a5aed828d936e87596bef604303ce (patch) | |
tree | f9f937c8b3a5b4a459c2b0947bf27439d52678d0 /server/sonar-process | |
parent | 2bc4e191083b996abf80bcbc535064bce6881bed (diff) | |
download | sonarqube-079096f44a4a5aed828d936e87596bef604303ce.tar.gz sonarqube-079096f44a4a5aed828d936e87596bef604303ce.zip |
Fix quality flaws
Diffstat (limited to 'server/sonar-process')
-rw-r--r-- | server/sonar-process/src/main/java/org/sonar/process/LogbackHelper.java | 2 | ||||
-rw-r--r-- | server/sonar-process/src/main/java/org/sonar/process/ProcessCommands.java | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/server/sonar-process/src/main/java/org/sonar/process/LogbackHelper.java b/server/sonar-process/src/main/java/org/sonar/process/LogbackHelper.java index 7fce2ffa786..cb9bb6a8080 100644 --- a/server/sonar-process/src/main/java/org/sonar/process/LogbackHelper.java +++ b/server/sonar-process/src/main/java/org/sonar/process/LogbackHelper.java @@ -110,7 +110,7 @@ public class LogbackHelper { } } - public static abstract class RollingPolicy { + public abstract static class RollingPolicy { protected final Context context; protected final String filenamePrefix; protected final File logsDir; diff --git a/server/sonar-process/src/main/java/org/sonar/process/ProcessCommands.java b/server/sonar-process/src/main/java/org/sonar/process/ProcessCommands.java index 14405940d67..d697f542f32 100644 --- a/server/sonar-process/src/main/java/org/sonar/process/ProcessCommands.java +++ b/server/sonar-process/src/main/java/org/sonar/process/ProcessCommands.java @@ -64,7 +64,10 @@ public class ProcessCommands { private final RandomAccessFile sharedMemory; private static final int MAX_PROCESSES = 50; private static final int BYTE_LENGTH_FOR_ONE_PROCESS = 1 + 1 + 8; - private static final int MAX_SHARED_MEMORY = BYTE_LENGTH_FOR_ONE_PROCESS * MAX_PROCESSES; // With this shared memory we can handle up to MAX_PROCESSES processes + + // With this shared memory we can handle up to MAX_PROCESSES processes + private static final int MAX_SHARED_MEMORY = BYTE_LENGTH_FOR_ONE_PROCESS * MAX_PROCESSES; + public static final byte STOP = (byte) 0xFF; public static final byte READY = (byte) 0x01; public static final byte EMPTY = (byte) 0x00; @@ -150,7 +153,7 @@ public class ProcessCommands { } } - public static final int getMaxProcesses() { + public static int getMaxProcesses() { return MAX_PROCESSES; } -}
\ No newline at end of file +} |