Skip to content

Commit b36623b

Browse files
author
Dominik Helm
committed
Typos
1 parent e1a86d9 commit b36623b

File tree

435 files changed

+1090
-1116
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

435 files changed

+1090
-1116
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Do not use Scala's feature to import multiple classes/objects from the same pack
2929
(This behavior can be configured in *IntelliJ*)
3030

3131
## Do Not Use Wildcard Imports
32-
Do not used wildcard imports, e.g., `import scala.collection._`, unless you import a huge (> 48) number of classes for the same package. Such imports are very brittle and can lead to strange behavior.
32+
Do not use wildcard imports, e.g., `import scala.collection._`, unless you import a huge (> 48) number of classes for the same package. Such imports are very brittle and can lead to strange behavior.
3333

3434
(This behavior can be configured in *IntelliJ*)
3535

Changes.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@
9090
## 3.0.0 - Snapshot available since June 7th, 2019
9191

9292
- added a preliminary IFDS framework
93-
- the Hermes and BugPicker UI projects were deleted (JavaFX was removed from the JDK 11 which makes the overall development and deplyoment process to cost intensive)
93+
- the Hermes and BugPicker UI projects were deleted (JavaFX was removed from the JDK 11 which makes the overall development and deployment process to cost intensive)
9494
- Hermes was promoted to a real project: TOOLS/hermes
95-
- renamed `DefaultOneStepAnalysis` to `ProjectAnalysisApplication`; added a new subclass `MethodAnalysisApplication` to facilitate the developmen of respective analysis
95+
- renamed `DefaultOneStepAnalysis` to `ProjectAnalysisApplication`; added a new subclass `MethodAnalysisApplication` to facilitate the development of respective analysis
9696
- added support for analyses using the monotone framework; the monotone framework itself was added to `CFG`
9797
- the three-address code has been moved to its own subproject (`ThreeAddressCode`) in the folder OPAL/tac
9898
- fixed the name of the static analysis infrastructure project (the name of the project on Maven Central has changed)
@@ -119,7 +119,7 @@
119119
## 2.0.1 - Released Oct. 10th 2018
120120

121121
- fixed a bug in the identification of closed strongly connected components
122-
- fixed a bug when computing the stackmap table when a register store instruction is found in a try block of a finally handler and therefore is considered to be throwing an exception by the VM when it tries to verify the bytecode
122+
- fixed a bug when computing the stackmap table when a register store instruction is found in a try block of a finally-handler and therefore is considered to be throwing an exception by the VM when it tries to verify the bytecode
123123
- fixed a bug when a simple property of an entity is queried in a later phase (after the analysis was run) and the analysis didn't compute a value
124124

125125
## 2.0.0 - Released Oct. 2nd 2018
@@ -130,13 +130,13 @@
130130
- support for Java 11
131131
- rewriting StringConcatFactory based invokedynamics
132132
- support for analyzing Scala 2.12.6-7 invokedynamics
133-
- Hermes now has extended visualization capabilities to make it even easiere to comprehend the differences between projects
134-
- the overall performance has been improved (in particular on multi-core systems with 4 or more cores)
133+
- Hermes now has extended visualization capabilities to make it even easier to comprehend the differences between projects
134+
- the overall performance has been improved (in particular on multicore systems with 4 or more cores)
135135
- moved to sbt 1.2.x
136136
- fixed issues in some tests which open a huge number of files
137137
- fixed a rare issue in the identification of closed strongly connected components
138138
- completely reimplemented the property store
139-
- added various analyses related to deriving the purity of methods, the immutabiliy of classes, escape information etc.
139+
- added various analyses related to deriving the purity of methods, the immutability of classes, escape information etc.
140140
- very much improved OPAL's collection library w.r.t. optimized data structures for Int values
141141

142142
## 1.0.0 - Released Oct. 25th 2017
@@ -162,9 +162,9 @@
162162
### General
163163

164164
- the call graph construction algorithms finally completely support Java 8 (e.g., default methods, static methods in interfaces, lambda expressions)
165-
- ***Assertions are turned-off by default when you checkout the latest stable release of OPAL***; to turn them on rename `local.sbt.template` to `local.sbt`; assertions are still turned on, when you depend on a development snapshot from Maven Central
166-
- removed the Eclipse plug-in sub-project; it wasn't maintained anymore and is now replaced by the ATOM plug-in
167-
- removed the Viz sub-project; it wasn't maintained anymore and OPAL has gained the possibility to generate SVGs using [a JavaScript based Graphviz version](https://github.com/mdaines/viz.js) which is executed using JDK's Nashorn JavaScript engine
165+
- ***Assertions are turned-off by default when you check out the latest stable release of OPAL***; to turn them on rename `local.sbt.template` to `local.sbt`; assertions are still turned on, when you depend on a development snapshot from Maven Central
166+
- removed the Eclipse plug-in subproject; it wasn't maintained anymore and is now replaced by the ATOM plug-in
167+
- removed the Viz subproject; it wasn't maintained anymore and OPAL has gained the possibility to generate SVGs using [a JavaScript based Graphviz version](https://github.com/mdaines/viz.js) which is executed using JDK's Nashorn JavaScript engine
168168
- fixed several minor bugs and issues when analyzing bytecode which contains compile-time dead code; the Groovy compiler frequently generated (generates?) such code
169169
- renamed packages called "analysis" to "analyses"
170170

@@ -229,7 +229,7 @@
229229
- the AI now prevents simple, unnecessary joins if a variable is known to be dead when multiple control flow paths join
230230
- added a simple live variables analysis to `br.Code.liveVariables` which computes liveness information for a code's locals (operand stack values are not considered because standard compilers generally don't create "dead operands" and the intended usage are performance and precision improvements)
231231
- refined the implementations of Graphs
232-
- added efficient implementatin of Tarjan's algorithm for finding strongly connected components (the implementation can easily handle graphs with millions of nodes)
232+
- added efficient implementation of Tarjan's algorithm for finding strongly connected components (the implementation can easily handle graphs with millions of nodes)
233233
- added support for converting dot files to SVG using vis-js.com
234234
- completely reworked `org.opalj.collection.immmutable.UIDSet`; instead of a simple binary search tree - which had significant scalability issues - we are now using a trie.
235235
- initial release of Hermes

DEVELOPING_OPAL/demos/src/main/scala/org/opalj/ai/CipherGetInstanceStrings.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import org.opalj.br.instructions.INVOKESTATIC
2121
import org.opalj.br.instructions.LoadString
2222

2323
/**
24-
* The analysis demonstrates how to find values passed to Chipher.getInstance:
24+
* The analysis demonstrates how to find values passed to Cipher.getInstance:
2525
* {{{
2626
* static Chipher getInstance(String transformation)
2727
* static Cipher getInstance(String transformation, Provider provider)
@@ -66,7 +66,7 @@ object CipherGetInstanceStrings extends ProjectsAnalysisApplication {
6666
case invoke @ INVOKEINTERFACE(ClassType.JavaSecurityKey, "getAlgorithm", JustReturnsString) =>
6767
report.add(m.toJava(s"return value of ($pc): ${invoke.toString}"))
6868

69-
case get @ GETFIELD(_, _, _) => println("uknown value: " + get)
69+
case get @ GETFIELD(_, _, _) => println("known value: " + get)
7070
case i => println("unsupported instruction: " + i)
7171
}
7272
}

DEVELOPING_OPAL/demos/src/main/scala/org/opalj/ai/InfiniteRecursions.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ object InfiniteRecursions extends ProjectsAnalysisApplication {
7676
}
7777
}
7878
if pcs.nonEmpty
79-
result <- inifiniteRecursions(maxRecursionDepth, project, method, pcs)
79+
result <- infiniteRecursions(maxRecursionDepth, project, method, pcs)
8080
} yield { result }
8181

8282
(project, BasicReport(result.map(_.toString).mkString("\n")))
@@ -89,7 +89,7 @@ object InfiniteRecursions extends ProjectsAnalysisApplication {
8989
* `maxRecursionDepth` determines after how many non-recursive calls the analysis
9090
* is aborted.
9191
*/
92-
def inifiniteRecursions(
92+
def infiniteRecursions(
9393
maxRecursionDepth: Int,
9494
project: SomeProject,
9595
method: Method,
@@ -116,7 +116,7 @@ object InfiniteRecursions extends ProjectsAnalysisApplication {
116116
if operandsArray(pc) ne null
117117
nextCallOperands: domain.Operands = operandsArray(pc).take(parametersCount)
118118
} {
119-
// IntegerRangeValues and ReferenceValues have useable equals semantics
119+
// IntegerRangeValues and ReferenceValues have usable equals semantics
120120
if (!callOperandsList.contains(nextCallOperands))
121121
callOperandsList = nextCallOperands :: callOperandsList
122122
}

DEVELOPING_OPAL/demos/src/main/scala/org/opalj/ai/domain/l0/ParameterUsageAnalysis.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ object ParameterUsageAnalysis extends ProjectsAnalysisApplication {
9090

9191
} { t => analysisTime = t.toSeconds }
9292

93-
val occurences = returnedParameters.size
93+
val occurrences = returnedParameters.size
9494
val report = BasicReport(
9595
returnedParameters.mkString("Directly returned parameters:\n", "\n", "\n\n") +
9696
unusedParameters.mkString("Unused parameters:\n", "\n", "\n\n") +
97-
s"\nThe analysis took $analysisTime and found $occurences direct returns"
97+
s"\nThe analysis took $analysisTime and found $occurrences direct returns"
9898
)
9999
(project, report)
100100
}

DEVELOPING_OPAL/demos/src/main/scala/org/opalj/ai/domain/l1/MethodReturnValuesAnalysis.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ object MethodReturnValuesAnalysis extends ProjectsAnalysisApplication {
8888
}
8989
}
9090

91-
// Test if it make sense to continue the abstract interpretation or if the
91+
// Test if it makes sense to continue the abstract interpretation or if the
9292
// return value information is already not more precise than the "return type".
9393
theReturnedValue match {
9494
case rv @ TypeOfReferenceValue(UIDSet1(`originalReturnType`))

DEVELOPING_OPAL/demos/src/main/scala/org/opalj/ba/ThirdInstrumentation.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ object ThirdInstrumentation extends App {
5353

5454
val TheType = ClassType("org/opalj/ba/SimpleInstrumentationDemo")
5555

56-
// Let's load the class ( we need the RT Jar to compute appropriate supertypes for
57-
// local variables and stack values during instrumentation.
56+
// Let's load the class (we need JavaBase to compute appropriate supertypes for
57+
// local variables and stack values during instrumentation).
5858
val f = new File(this.getClass.getResource("SimpleInstrumentationDemo.class").getFile)
5959
val p = Project(f.getParentFile, org.opalj.bytecode.JavaBase)
6060
implicit val classHierarchy: ClassHierarchy = p.classHierarchy // STRICTLY REQUIRED WHEN A StackMapTable NEEDS TO BE COMPUTED!
@@ -113,10 +113,10 @@ object ThirdInstrumentation extends App {
113113
// whenever a method is called, we output its signature
114114
lCode.insert(
115115
// Note, we generally don't want to use Before, here!
116-
// If we would use "Before" and would have a method like:
116+
// If we used "Before" and would have a method like:
117117
// do {
118118
// } while(...)
119-
// It could happen that the output would be printed each time the loop
119+
// , it could happen that the output would be printed each time the loop
120120
// is evaluated.
121121
0,
122122
InsertionPosition.At,
@@ -164,7 +164,7 @@ object ThirdInstrumentation extends App {
164164
Seq(
165165
DUP, // duplicate the value
166166
GETSTATIC(SystemType, "out", PrintStreamType), // receiver
167-
SWAP, // the int value is on top now..
167+
SWAP, // the int value is on top now...
168168
IFGT(gtTarget),
169169
// value is less than 0
170170
LoadString("negative"), // top is the parameter, receiver is 2nd top most
@@ -230,7 +230,7 @@ object ThirdInstrumentation extends App {
230230
if (!ite.getCause.isInstanceOf[RuntimeException]) {
231231
Console.err.println("Big Bug!")
232232
} else {
233-
Console.out.println("Dead code successfully removedt!")
233+
Console.out.println("Dead code successfully removed!")
234234
}
235235
}
236236
}

DEVELOPING_OPAL/demos/src/main/scala/org/opalj/bc/DAandBR.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ object DAandBR extends App {
216216
val brClassFile = Java8Framework.ClassFile(() => new ByteArrayInputStream(assembledCF)).head
217217
val newBRMethods =
218218
brClassFile.methods
219-
.filter(m => /*due some sophisticated analysis...*/ m.name == "<init>")
219+
.filter(m => /* do some sophisticated analysis...*/ m.name == "<init>")
220220
.map[MethodTemplate](m => m.copy())
221221
val newBRClassFile = brClassFile.copy(methods = newBRMethods)
222222

DEVELOPING_OPAL/demos/src/main/scala/org/opalj/br/FieldAccessInformationAnalysis.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ object FieldAccessInformationAnalysis extends ProjectsAnalysisApplication {
8989
} else {
9090
BasicReport(
9191
accessInformation.statistics
92-
.mkString(s"determing field access information required $memoryUsage :\n", "\n", "\n")
92+
.mkString(s"determining field access information required $memoryUsage :\n", "\n", "\n")
9393
)
9494
}
9595

DEVELOPING_OPAL/demos/src/main/scala/org/opalj/br/OverridingMethodsCount.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ object OverridingMethodsCount extends ProjectsAnalysisApplication {
4040
val overridingMethods = allOverridingMethods.map(m => m.classFile.fqn)
4141
val count = overridingMethods.size
4242
method.toJava(
43-
overridingMethods.mkString(s"\n\thas $count overridde(s):\n\t\t", "\n\t\t", "\n")
43+
overridingMethods.mkString(s"\n\thas $count override(s):\n\t\t", "\n\t\t", "\n")
4444
)
4545
}
4646

0 commit comments

Comments
 (0)