From 69335f5aaf57854018e20139d79381fdc047464c Mon Sep 17 00:00:00 2001 From: maaatts Date: Mon, 10 Aug 2015 14:07:53 +0100 Subject: [PATCH] Made searching case sensitive Why was searching case insensitive to begin with? --- .../club/bytecodeviewer/gui/FileNavigationPane.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/the/bytecode/club/bytecodeviewer/gui/FileNavigationPane.java b/src/the/bytecode/club/bytecodeviewer/gui/FileNavigationPane.java index 8c9be22d..70a37c1c 100644 --- a/src/the/bytecode/club/bytecodeviewer/gui/FileNavigationPane.java +++ b/src/the/bytecode/club/bytecodeviewer/gui/FileNavigationPane.java @@ -145,7 +145,7 @@ public class FileNavigationPane extends VisibleComponent implements MyTreeNode node = enums.nextElement(); if (node.isLeaf()) { - if (((String) (node.getUserObject())).toLowerCase().contains(path[path.length - 1].toLowerCase())) { + if (((String) (node.getUserObject())).contains(path[path.length - 1])) { TreeNode pathArray[] = node.getPath(); int k = 0; StringBuffer fullPath = new StringBuffer(); @@ -159,7 +159,7 @@ public class FileNavigationPane extends VisibleComponent implements } } String fullPathString = fullPath.toString(); - if (fullPathString != null && fullPathString.toLowerCase().contains(qt.toLowerCase())) { + if (fullPathString != null && fullPathString.contains(qt)) { System.out.println("Found! " + node); final TreePath pathn = new TreePath(node.getPath()); tree.setSelectionPath(pathn.getParentPath()); @@ -573,7 +573,7 @@ public class FileNavigationPane extends VisibleComponent implements if(value != null && value instanceof the.bytecode.club.bytecodeviewer.gui.FileNavigationPane.MyTreeNode) { the.bytecode.club.bytecodeviewer.gui.FileNavigationPane.MyTreeNode node = (the.bytecode.club.bytecodeviewer.gui.FileNavigationPane.MyTreeNode) value; - String name = node.toString().toLowerCase(); + String name = node.toString(); if(name.endsWith(".jar")) { setIcon(Resources.jarIcon); @@ -650,4 +650,4 @@ public class FileNavigationPane extends VisibleComponent implements } } -} \ No newline at end of file +}