aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Kozlov2012-04-05 09:23:55 (EDT)
committerRoland Grunberg2012-04-12 17:01:33 (EDT)
commitfd6f2240f82cf50784730cee75a54faaf050d940 (patch)
treea17a74d6829779244896f1a0e6f9ac2fb5456daa
parent21a3c1e7bec752b9daa409c4f6a817aa4d44a24d (diff)
downloadorg.eclipse.linuxtools-fd6f2240f82cf50784730cee75a54faaf050d940.zip
org.eclipse.linuxtools-fd6f2240f82cf50784730cee75a54faaf050d940.tar.gz
org.eclipse.linuxtools-fd6f2240f82cf50784730cee75a54faaf050d940.tar.bz2
Cleanup leading underscores from identifiers' names in org.eclipse.linuxtools.internal.oprofile.core.opxml.info.DefaultsProcessor,
org.eclipse.linuxtools.internal.oprofile.core.opxml.info.OpInfoProcessor.
-rw-r--r--oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/opxml/info/DefaultsProcessor.java8
-rw-r--r--oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/opxml/info/OpInfoProcessor.java16
2 files changed, 12 insertions, 12 deletions
diff --git a/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/opxml/info/DefaultsProcessor.java b/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/opxml/info/DefaultsProcessor.java
index bcc275c..44bdce6 100644
--- a/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/opxml/info/DefaultsProcessor.java
+++ b/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/opxml/info/DefaultsProcessor.java
@@ -26,13 +26,13 @@ public class DefaultsProcessor extends XMLProcessor {
public static final String LOCK_FILE = "lock-file"; //$NON-NLS-1$
public static final String LOG_FILE = "log-file"; //$NON-NLS-1$
public static final String DUMP_STATUS = "dump-status"; //$NON-NLS-1$
- protected HashMap<String,String> _map = new HashMap<String,String>();
+ protected HashMap<String,String> map = new HashMap<String,String>();
/**
* @see org.eclipse.linuxtools.internal.oprofile.core.XMLProcessor#reset()
*/
public void reset(Object callData) {
- _map.clear();
+ map.clear();
}
/* (non-Javadoc)
@@ -41,10 +41,10 @@ public class DefaultsProcessor extends XMLProcessor {
public void endElement(String name, Object callData) {
if (name.equals(OpInfoProcessor.DEFAULTS_TAG)) {
OpInfo info = (OpInfo) callData;
- info.setDefaults(_map);
+ info.setDefaults(map);
OprofileSAXHandler.getInstance(callData).pop(name);
} else {
- _map.put(name, characters);
+ map.put(name, characters);
}
}
}
diff --git a/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/opxml/info/OpInfoProcessor.java b/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/opxml/info/OpInfoProcessor.java
index f226e4e..d7abb64 100644
--- a/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/opxml/info/OpInfoProcessor.java
+++ b/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/opxml/info/OpInfoProcessor.java
@@ -23,8 +23,8 @@ import org.xml.sax.Attributes;
*/
public class OpInfoProcessor extends XMLProcessor {
// Other XMLProcessors used by this processor
- private DefaultsProcessor _defaultsProc;
- private EventListProcessor _eventListProc;
+ private DefaultsProcessor defaultsProc;
+ private EventListProcessor eventListProc;
// XML tags processed by this processor
public static final String NUM_COUNTERS_TAG = "num-counters"; //$NON-NLS-1$
@@ -34,8 +34,8 @@ public class OpInfoProcessor extends XMLProcessor {
public static final String TIMER_MODE = "timer-mode"; //$NON-NLS-1$
public OpInfoProcessor() {
- _defaultsProc = new DefaultsProcessor();
- _eventListProc = new EventListProcessor();
+ defaultsProc = new DefaultsProcessor();
+ eventListProc = new EventListProcessor();
}
/* (non-Javadoc)
@@ -43,10 +43,10 @@ public class OpInfoProcessor extends XMLProcessor {
*/
public void startElement(String name, Attributes attrs, Object callData) {
if (name.equals(DEFAULTS_TAG)) {
- OprofileSAXHandler.getInstance(callData).push(_defaultsProc);
+ OprofileSAXHandler.getInstance(callData).push(defaultsProc);
} else if (name.equals(EVENT_LIST_TAG)) {
- OprofileSAXHandler.getInstance(callData).push(_eventListProc);
- _eventListProc.startElement(name, attrs, callData);
+ OprofileSAXHandler.getInstance(callData).push(eventListProc);
+ eventListProc.startElement(name, attrs, callData);
} else {
super.startElement(name, attrs, callData);
}
@@ -74,7 +74,7 @@ public class OpInfoProcessor extends XMLProcessor {
info.setNrCounters(numCounters);
} else if (name.equals(EVENT_LIST_TAG)) {
OpInfo info = (OpInfo) callData;
- info.setEvents(_eventListProc.getCounterNum(), _eventListProc.getEvents());
+ info.setEvents(eventListProc.getCounterNum(), eventListProc.getEvents());
}
}
}