diff --git a/java_console/.idea/inspectionProfiles/Project_Default.xml b/java_console/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 0000000000..1fb1d1849b
--- /dev/null
+++ b/java_console/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/java_console/tools/src/com/irnems/AdcFilter.java b/java_console/tools/src/com/irnems/AdcFilter.java
index ad9fcee5b6..3adc41351a 100644
--- a/java_console/tools/src/com/irnems/AdcFilter.java
+++ b/java_console/tools/src/com/irnems/AdcFilter.java
@@ -49,7 +49,7 @@ public class AdcFilter {
FileUtils.saveList("v2.csv", values);
- final List medianValues = MedialFilter.filter(values, 5);
+ final List medianValues = MedianFilter.filter(values, 5);
FileUtils.saveList("v_med.csv", medianValues);
diff --git a/java_console/tools/src/com/irnems/MedialFilter.java b/java_console/tools/src/com/irnems/MedianFilter.java
similarity index 68%
rename from java_console/tools/src/com/irnems/MedialFilter.java
rename to java_console/tools/src/com/irnems/MedianFilter.java
index fd259d4c50..22fa1e595b 100644
--- a/java_console/tools/src/com/irnems/MedialFilter.java
+++ b/java_console/tools/src/com/irnems/MedianFilter.java
@@ -8,33 +8,28 @@ import java.util.List;
* @author Andrey Belomutskiy
* 8/5/13
*/
-public class MedialFilter {
-
-
+public class MedianFilter {
private List values;
private int size;
-
-
-
- public MedialFilter(List values, int size) {
+ public MedianFilter(List values, int size) {
this.values = values;
this.size = size;
}
public static List filter(List values, int size) {
- return new MedialFilter(values, size).filter();
+ return new MedianFilter(values, size).filter();
}
private List filter() {
- List result = new ArrayList();
+ List result = new ArrayList<>();
for(int i=0;i copy = new ArrayList(values.subList(fromIndex, i+1));
+ List copy = new ArrayList<>(values.subList(fromIndex, i + 1));
Collections.sort(copy);