Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Kozlov2012-04-05 13:32:39 +0000
committerRoland Grunberg2012-04-12 21:01:34 +0000
commitbd2a0ff4b5d22467f4c55287570791e07570f0a8 (patch)
tree3b1dcbc7a86cde68c995ecf40a508b904ef1d027 /oprofile
parente48143db62e97afcf46c9ad1f559b2646af33af1 (diff)
downloadorg.eclipse.linuxtools-bd2a0ff4b5d22467f4c55287570791e07570f0a8.tar.gz
org.eclipse.linuxtools-bd2a0ff4b5d22467f4c55287570791e07570f0a8.tar.xz
org.eclipse.linuxtools-bd2a0ff4b5d22467f4c55287570791e07570f0a8.zip
Cleanup leading underscores from identifiers' names in org.eclipse.linuxtools.internal.oprofile.core.opxml.sessions.SessionsProcessor.
Diffstat (limited to 'oprofile')
-rw-r--r--oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/opxml/sessions/SessionsProcessor.java40
1 files changed, 20 insertions, 20 deletions
diff --git a/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/opxml/sessions/SessionsProcessor.java b/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/opxml/sessions/SessionsProcessor.java
index 648226b15e..649c51d773 100644
--- a/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/opxml/sessions/SessionsProcessor.java
+++ b/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/opxml/sessions/SessionsProcessor.java
@@ -27,38 +27,38 @@ public class SessionsProcessor extends XMLProcessor {
// A list of SessionEvents
public ArrayList<OpModelEvent> list;
- public SessionInfo(ArrayList<OpModelEvent> _list){
- list = _list;
+ public SessionInfo(ArrayList<OpModelEvent> list){
+ this.list = list;
}
};
// XML tags recognized by this processor
public static final String SESSION_TAG = "session"; //$NON-NLS-1$
- private static final String _SESSION_NAME_ATTR = "name"; //$NON-NLS-1$
+ private static final String SESSION_NAME_ATTR = "name"; //$NON-NLS-1$
public static final String SAMPLE_COUNT_TAG = "count"; //$NON-NLS-1$
public static final String EVENT_TAG = "event"; //$NON-NLS-1$
- private static final String _EVENT_NAME_ATTR = "name"; //$NON-NLS-1$
+ private static final String EVENT_NAME_ATTR = "name"; //$NON-NLS-1$
// The current session being constructed
- private OpModelSession _currentSession;
+ private OpModelSession currentSession;
// The current event being constructed
- private OpModelEvent _currentEvent;
+ private OpModelEvent currentEvent;
// A list of all sessions
- private ArrayList<OpModelSession> _sessionList;
+ private ArrayList<OpModelSession> sessionList;
/* (non-Javadoc)
* @see org.eclipse.linuxtools.internal.oprofile.core.opxml.XMLProcessor#startElement(java.lang.String, org.xml.sax.Attributes, java.lang.Object)
*/
public void startElement(String name, Attributes attrs, Object callData) {
if (name.equals(SESSION_TAG)) {
- String sessionName = valid_string(attrs.getValue(_SESSION_NAME_ATTR));
- _currentSession = new OpModelSession(_currentEvent, sessionName);
+ String sessionName = valid_string(attrs.getValue(SESSION_NAME_ATTR));
+ currentSession = new OpModelSession(currentEvent, sessionName);
} else if (name.equals(EVENT_TAG)) {
- String eventName = attrs.getValue(_EVENT_NAME_ATTR);
- _currentEvent = new OpModelEvent(eventName);
- _sessionList = new ArrayList<OpModelSession>();
+ String eventName = attrs.getValue(EVENT_NAME_ATTR);
+ currentEvent = new OpModelEvent(eventName);
+ sessionList = new ArrayList<OpModelSession>();
} else {
super.startElement(name, attrs, callData);
}
@@ -70,18 +70,18 @@ public class SessionsProcessor extends XMLProcessor {
public void endElement(String name, Object callData) {
if (name.equals(SESSION_TAG)) {
// Got end of session -- save in session list
- _sessionList.add(_currentSession);
- _currentSession = null;
+ sessionList.add(currentSession);
+ currentSession = null;
} else if (name.equals(EVENT_TAG)) {
// Got end of event -- save session list into current OpModelEvent and
// save current event into call data
- OpModelSession[] s = new OpModelSession[_sessionList.size()];
- _sessionList.toArray(s);
- _currentEvent.setSessions(s);
+ OpModelSession[] s = new OpModelSession[sessionList.size()];
+ sessionList.toArray(s);
+ currentEvent.setSessions(s);
SessionInfo info = (SessionInfo) callData;
- info.list.add(_currentEvent);
- _currentEvent = null;
- _sessionList = null;
+ info.list.add(currentEvent);
+ currentEvent = null;
+ sessionList = null;
} else {
super.endElement(name, callData);
}

Back to the top