aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRenaud Allard <renaud@allard.it>2016-10-18 00:07:06 +0200
committerRenaud Allard <renaud@allard.it>2016-10-18 00:07:06 +0200
commitc0acd034c1103cf5d38e94bd42ec183147678135 (patch)
tree15d878ecf94868732d29515461ff4a8ad98ad1fa
parent54d48825f34b1a211960b68c98a817eedcdbba9c (diff)
downloadtrackermap-server-c0acd034c1103cf5d38e94bd42ec183147678135.tar.gz
trackermap-server-c0acd034c1103cf5d38e94bd42ec183147678135.tar.bz2
trackermap-server-c0acd034c1103cf5d38e94bd42ec183147678135.zip
Rename variable p into position in filter checking
-rw-r--r--src/org/traccar/FilterHandler.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/org/traccar/FilterHandler.java b/src/org/traccar/FilterHandler.java
index f1df7ce2c..e9e3245a6 100644
--- a/src/org/traccar/FilterHandler.java
+++ b/src/org/traccar/FilterHandler.java
@@ -148,30 +148,30 @@ public class FilterHandler extends BaseDataHandler {
}
}
- private boolean filter(Position p) {
+ private boolean filter(Position position) {
boolean result = false;
StringBuilder filterType = new StringBuilder(8 + 5 + 10 + 7 + 12 + 7 + 9);
- if (filterInvalid(p)) {
+ if (filterInvalid(position)) {
filterType.append("Invalid ");
}
- if (filterZero(p)) {
+ if (filterZero(position)) {
filterType.append("Zero ");
}
- if (filterDuplicate(p)) {
+ if (filterDuplicate(position)) {
filterType.append("Duplicate ");
}
- if (filterFuture(p)) {
+ if (filterFuture(position)) {
filterType.append("Future ");
}
- if (filterApproximate(p)) {
+ if (filterApproximate(position)) {
filterType.append("Approximate ");
}
- if (filterStatic(p)) {
+ if (filterStatic(position)) {
filterType.append("Static ");
}
- if (filterDistance(p)) {
+ if (filterDistance(position)) {
filterType.append("Distance ");
}
@@ -179,12 +179,12 @@ public class FilterHandler extends BaseDataHandler {
result = true;
}
- if (filterLimit(p)) {
+ if (filterLimit(position)) {
result = false;
}
if (result) {
- Log.info("Position filtered by " + filterType.toString() + "filters from " + p.getDeviceId());
+ Log.info("Position filtered by " + filterType.toString() + "filters from " + position.getDeviceId());
}
return result;