Skip to content

Commit 98a9d4e

Browse files
committed
Merge pull request #25 from DevFactory/release/Array-designators-should-be-on-type-fix1
Fixing squid:S1197, Fixing squid:S1125
2 parents 40daf4d + acee342 commit 98a9d4e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/main/java/org/audit4j/core/filter/POJOQuery.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,9 @@ public Counting charCount() {
294294
* @return true, if successful
295295
*/
296296
public boolean operaterProceed() {
297-
if (operator.equals(Operator.AND) && result == false) {
297+
if (operator.equals(Operator.AND) && !result) {
298298
return false;
299-
} else if (operator.equals(Operator.OR) && result == true) {
299+
} else if (operator.equals(Operator.OR) && result) {
300300
return false;
301301
}
302302
return true;

src/main/java/org/audit4j/core/handler/file/archive/FTPArchiveClient.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public static void init(String[] args) throws UnknownHostException {
143143
trustmgr = args[++base];
144144
} else if (args[base].equals("-PrH")) {
145145
proxyHost = args[++base];
146-
String parts[] = proxyHost.split(":");
146+
String[] parts = proxyHost.split(":");
147147
if (parts.length == 2) {
148148
proxyHost = parts[0];
149149
proxyPort = Integer.parseInt(parts[1]);
@@ -171,7 +171,7 @@ public static void init(String[] args) throws UnknownHostException {
171171

172172
String server = args[base++];
173173
int port = 0;
174-
String parts[] = server.split(":");
174+
String[] parts = server.split(":");
175175
if (parts.length == 2) {
176176
server = parts[0];
177177
port = Integer.parseInt(parts[1]);
@@ -206,7 +206,7 @@ public static void init(String[] args) throws UnknownHostException {
206206
} else if (protocol.equals("false")) {
207207
ftps = new FTPSClient(false);
208208
} else {
209-
String prot[] = protocol.split(",");
209+
String[] prot = protocol.split(",");
210210
if (prot.length == 1) { // Just protocol
211211
ftps = new FTPSClient(protocol);
212212
} else { // protocol,true|false

0 commit comments

Comments
 (0)