Permalink
Browse files

cosmetic.

	modified:   .settings/org.eclipse.jdt.core.prefs
	modified:   docs/manual.html
	modified:   src/kilim/analysis/ClassWeaver.java
	modified:   src/kilim/tools/DumpClass.java
  • Loading branch information...
1 parent 7bcca48 commit 91e35b301596094c21b96805fae96168540a58a9 @kilim committed Apr 19, 2011
@@ -1,4 +1,4 @@
-#Mon Jul 28 11:20:18 BST 2008
+#Wed Sep 29 12:43:33 PDT 2010
eclipse.preferences.version=1
org.eclipse.jdt.core.builder.cleanOutputFolder=clean
org.eclipse.jdt.core.builder.duplicateResourceTask=warning
@@ -9,15 +9,15 @@ org.eclipse.jdt.core.circularClasspath=error
org.eclipse.jdt.core.classpath.exclusionPatterns=enabled
org.eclipse.jdt.core.classpath.multipleOutputLocations=enabled
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.maxProblemPerUnit=100
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
+org.eclipse.jdt.core.compiler.source=1.6
org.eclipse.jdt.core.incompatibleJDKLevel=ignore
org.eclipse.jdt.core.incompleteClasspath=error
View
@@ -219,14 +219,13 @@
v.0.7 (April 2010): Added support for reflection, NIO and HTTP, and fixed data races in the scheduler.
<h1>Acknowledgments</h1>
-Adrian Quark
-Jan Kotek
-Colin Fleming
-Chris Moulang
-Kresten Krab Thorup
-Jan Schäfer
-Andrey Tarantsov
-Jason Pell
-
+Adrian Quark<br>
+Jan Kotek<br>
+Colin Fleming<br>
+Chris Moulang<br>
+Kresten Krab Thorup<br>
+Jan Schäfer<br>
+Andrey Tarantsov<br>
+Jason Pell<br>
</body> </html>
@@ -31,6 +31,10 @@
List<ClassInfo> classInfoList = new LinkedList<ClassInfo>();
static HashSet<String> stateClasses = new HashSet<String>();
+ public ClassWeaver(byte[] data) {
+ this(data, Detector.DEFAULT);
+ }
+
public ClassWeaver(byte[] data, Detector detector) {
classFlow = new ClassFlow(data, detector);
weave();
@@ -13,6 +13,7 @@
import java.io.FileInputStream;
import java.io.IOException;
+import java.io.InputStream;
import java.lang.reflect.Modifier;
import java.util.Enumeration;
import java.util.Formatter;
@@ -64,9 +65,13 @@ public static void main(String[] args) throws IOException {
}
}
-
- DumpClass(String className, boolean flags) throws IOException {
+ public DumpClass(InputStream is, boolean flags) throws IOException {
+ ClassReader cr = new ClassReader(is);
+ cr.accept(this, flags);
+ }
+
+ public DumpClass(String className, boolean flags) throws IOException {
ClassReader cr;
if (className.endsWith(".class")) {
FileInputStream fis = new FileInputStream(className);

0 comments on commit 91e35b3

Please sign in to comment.