From: Uwe Hermann Date: Tue, 26 Aug 2014 18:30:43 +0000 (+0200) Subject: Fix minor typos. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=ed3a4c3caf169a624bb187509630eb2be964c4ba;p=sigrok-androidutils.git Fix minor typos. --- diff --git a/ant/src/org/sigrok/androidutils/ant/CopyLibsTask.java b/ant/src/org/sigrok/androidutils/ant/CopyLibsTask.java index f2f9395..44af50d 100644 --- a/ant/src/org/sigrok/androidutils/ant/CopyLibsTask.java +++ b/ant/src/org/sigrok/androidutils/ant/CopyLibsTask.java @@ -299,7 +299,7 @@ public class CopyLibsTask extends Task protected void setDependency(Library l1, Library l2) { - if (l2 == null) // Dependancy on external lib. + if (l2 == null) // Dependency on external lib. return; l1.dependencies.add(l2); l2.dependedUpon = true; @@ -348,7 +348,7 @@ public class CopyLibsTask extends Task protected void process(Library l) throws Exception { if (processedLibs.contains(l)) - return; // Already processed + return; // Already processed. processedLibs.add(l); addRpath(l.rpath); for (String need : l.needed) @@ -390,7 +390,7 @@ public class CopyLibsTask extends Task } if (property != null) { Vector order = - topoSort(new HashSet(processedLibs));; + topoSort(new HashSet(processedLibs)); StringBuilder sb = new StringBuilder(); for (Library l : order) { String name = l.destname; diff --git a/src/org/sigrok/androidutils/UsbSupplicant.java b/src/org/sigrok/androidutils/UsbSupplicant.java index 928cdef..e1d0bbb 100644 --- a/src/org/sigrok/androidutils/UsbSupplicant.java +++ b/src/org/sigrok/androidutils/UsbSupplicant.java @@ -202,7 +202,7 @@ public class UsbSupplicant } } - protected boolean interresting(UsbDevice dev) + protected boolean interesting(UsbDevice dev) { if (dev == null) return false; @@ -226,8 +226,8 @@ public class UsbSupplicant context.registerReceiver(hotplugReceiver, hotplugFilter); HashMap devlist = manager.getDeviceList(); for (UsbDevice dev : devlist.values()) { - if (interresting(dev) && !manager.hasPermission(dev)) { - Log.d("UsbSupplicant", "found interresting device " + dev); + if (interesting(dev) && !manager.hasPermission(dev)) { + Log.d("UsbSupplicant", "found interesting device " + dev); askFor(dev); } } @@ -247,7 +247,7 @@ public class UsbSupplicant protected void attachCallback(UsbDevice dev) { - if (interresting(dev) && !manager.hasPermission(dev)) + if (interesting(dev) && !manager.hasPermission(dev)) askFor(dev); }