Commits

Barthelemy Dagenais committed adbd703

Cleanup. Fixed some CS warnings.

  • Participants
  • Parent commits 0521646

Comments (0)

Files changed (1)

File ca.mcgill.cs.swevo.qualyzer/src/ca/mcgill/cs/swevo/qualyzer/editors/RTFDocumentProvider2.java

 	}
 
 	/**
-	 * This is the main loop.
+	 * This is the main loop of the RTF parser.
 	 */
+	//CSOFF:
 	@Override
 	protected void setDocumentContent(IDocument document, InputStream contentStream, String encoding)
 			throws CoreException
 
 		rtfDocument.set(text.toString());
 	}
+	//CSON:
 
 	private void handleEndGroup(InputStream contentStream, Stack<Map<String, Integer>> state, StringBuilder text,
 			RTFDocument document)
 		return c;
 	}
 
+	//CSOFF:
 	private boolean handleControlCommand(String control, StringBuilder text, Map<String, Integer> state,
 			RTFDocument document)
 	{
 		}
 		return printSpace;
 	}
+	//CSON:
 
 	private ParserPair parseUnicode(String unicodeStr)
 	{
 		return handleControl(contentStream, c, EMPTY);
 	}
 
+	//CSOFF:
 	private ParserPair handleControl(InputStream contentStream, int startChar, String startControl) throws IOException
 	{
 		StringBuilder controlWord = new StringBuilder(startControl);
 
 		return new ParserPair(c, controlWord.toString());
 	}
-
+	//CSON:
+	
 	private ParserPair getUnicode(InputStream contentStream) throws IOException
 	{
 		StringBuilder control = new StringBuilder();
 }
 
 /**
- * 
+ * Used by the parser to return a string and the last read character (similar to peek).
  *
  */
+//CSOFF:
 class ParserPair
 {
 	public final int fChar;
 		fString = str;
 	}
 }
+//CSON: