Skip to content

Commit 7f7d212

Browse files
authored
Merge pull request #868 from MarcMil/fix-javadoc
Fix Javadoc
2 parents 18a36da + 743ec98 commit 7f7d212

19 files changed

Lines changed: 81 additions & 69 deletions

File tree

soot-infoflow-android/src/soot/jimple/infoflow/android/SetupApplication.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -928,14 +928,13 @@ protected AbstractCallbackAnalyzer createCallbackAnalyzerFromFile(InfoflowAndroi
928928
* out of memory. This method also starts the watchdog thread. Derived classes
929929
* can implement their own timeout handling if necessary.
930930
*
931-
* @param callbackConfig The configuration for the callback analysis
932-
* @param analyzer The callback analyzer
931+
* @param analyzer The callback analyzer
933932
* @return The memory watcher that keeps track of the amount of memory spent in
934933
* the callback analysis
935934
*/
936-
protected FlowDroidMemoryWatcher createCallbackMemoryWatcher(AbstractCallbackAnalyzer jimpleClass) {
935+
protected FlowDroidMemoryWatcher createCallbackMemoryWatcher(AbstractCallbackAnalyzer analyzer) {
937936
FlowDroidMemoryWatcher memoryWatcher = new FlowDroidMemoryWatcher(config.getMemoryThreshold());
938-
memoryWatcher.addSolver((IMemoryBoundedSolver) jimpleClass);
937+
memoryWatcher.addSolver((IMemoryBoundedSolver) analyzer);
939938
return memoryWatcher;
940939
}
941940

soot-infoflow-android/src/soot/jimple/infoflow/android/axml/AXmlElement.java

Lines changed: 38 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,104 +1,111 @@
11
package soot.jimple.infoflow.android.axml;
22

33
/**
4-
* Basic class for all classes which represent elements from an <i>Android XML file</i>.
5-
* Provides functionality to either include or exclude the element from the XML.
4+
* Basic class for all classes which represent elements from an <i>Android XML
5+
* file</i>. Provides functionality to either include or exclude the element
6+
* from the XML.
67
*
78
* @author Stefan Haas, Mario Schlipf
89
*/
910
public abstract class AXmlElement {
1011
/**
11-
* The include flag determines whether this element will be written out in the document.
12+
* The include flag determines whether this element will be written out in the
13+
* document.
1214
*/
1315
protected boolean include = true;
14-
16+
1517
/**
16-
* The added flag determines wheter this element was part of a parsed xml file or added afterwards.
18+
* The added flag determines wheter this element was part of a parsed xml file
19+
* or added afterwards.
1720
*/
1821
protected boolean added;
19-
22+
2023
/**
2124
* The element's namespace.
2225
*/
2326
String ns;
24-
27+
2528
/**
2629
* Constructor for a new Android XML Element.
2730
*
28-
* @param ns namespace of this element.
29-
* @param added wheter this element was part of a parsed xml file or added afterwards.
31+
* @param ns namespace of this element.
32+
* @param added wheter this element was part of a parsed xml file or added
33+
* afterwards.
3034
*/
3135
public AXmlElement(String ns, boolean added) {
3236
this.ns = ns;
3337
this.added = added;
3438
}
35-
39+
3640
/**
3741
* Returns the namespace of this element.
3842
*
39-
* @return the element's namespace
43+
* @return the element's namespace
4044
*/
4145
public String getNamespace() {
4246
return this.ns;
4347
}
44-
48+
4549
/**
4650
* Sets the namespace of this element.
4751
*
48-
* @param ns the element's namespace
52+
* @param ns the element's namespace
4953
*/
5054
public void setNamespace(String ns) {
5155
this.ns = ns;
5256
}
53-
57+
5458
/**
55-
* The <code>added</code> flag determines wheter this element
56-
* was part of a parsed xml file or added afterwards.
59+
* The <code>added</code> flag determines wheter this element was part of a
60+
* parsed xml file or added afterwards.
5761
*
58-
* @param added
62+
* @param added
5963
*/
6064
public void setAdded(boolean added) {
6165
this.added = added;
6266
}
63-
67+
6468
/**
65-
* Returns wheter this element was part of a parsed xml file or added afterwards.
69+
* Returns wheter this element was part of a parsed xml file or added
70+
* afterwards.
6671
*
67-
* @return <code>added</code> flag
72+
* @return <code>added</code> flag
6873
*/
6974
public boolean isAdded() {
7075
return this.added;
7176
}
72-
77+
7378
/**
74-
* Returns the current value of the <code>include</code> flag.
75-
* If true the manifest will contain information about this element.
79+
* Returns the current value of the <code>include</code> flag. If true the
80+
* manifest will contain information about this element.
7681
*
77-
* @return whether or not the element will be included in the manifest
82+
* @return whether or not the element will be included in the manifest
7883
*/
7984
public boolean isIncluded() {
8085
return this.include;
8186
}
82-
87+
8388
/**
84-
* Sets the <code>include</code> flag to true so that the manifest will contain information about this element.
89+
* Sets the <code>include</code> flag to true so that the manifest will contain
90+
* information about this element.
8591
*/
8692
public void include() {
8793
this.include(true);
8894
}
8995

9096
/**
91-
* Sets the <code>include</code> flag to false so that the manifest will <i>not</i> contain information about this element.
97+
* Sets the <code>include</code> flag to false so that the manifest will
98+
* <i>not</i> contain information about this element.
9299
*/
93100
public void exclude() {
94101
this.include(false);
95102
}
96-
103+
97104
/**
98-
* Sets the <code>include</code> flag to the passed boolean value.
99-
* If given true this element will be included in the manifest.
105+
* Sets the <code>include</code> flag to the passed boolean value. If given true
106+
* this element will be included in the manifest.
100107
*
101-
* @param included value for the <code>include</code> flag
108+
* @param include value for the <code>include</code> flag
102109
*/
103110
protected void include(boolean include) {
104111
this.include = include;

soot-infoflow-android/src/soot/jimple/infoflow/android/axml/AXmlNode.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,9 @@ public AXmlNode addChild(AXmlNode child) {
157157
*
158158
* @param child a new child for this node
159159
* @return this node itself for method chaining
160-
* @throws IndexOutOfBoundsException if the index is out of range (index < 0 ||
161-
* index > children.size())
160+
* @throws IndexOutOfBoundsException if the index is out of range:
161+
* <code>{@literal index < 0 ||
162+
* index > children.size()}</code>)
162163
*/
163164
public AXmlNode addChild(AXmlNode child, int index) {
164165
if (this.children == null)

soot-infoflow-android/src/soot/jimple/infoflow/android/axml/flags/BitwiseFlagSystem.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
* 01 Option B (cannot be used with option A): 10 Option C (only valid when used
1515
* with Option A): 11
1616
*
17-
* In this case, we could do checking of B via ((v & 10) == 1) && ((v & 1) != 1)
18-
* but sometimes there are a lot of options (e.g. inputType)
17+
* In this case, we could do checking of B via
18+
* <code>{@literal ((v & 10) == 1) && ((v & 1) != 1)}</code> but sometimes there
19+
* are a lot of options (e.g. inputType)
1920
*
2021
* @param <T> the keys used to distinguish flags
2122
*/

soot-infoflow-android/src/soot/jimple/infoflow/android/iccta/IccInstrumentDestination.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ public SootClass instrumentDestinationForContentProvider(String destination) {
5555
* take one Intent as their parameter.
5656
*
5757
* the best way is to use a place holder parameter to avoid exist construct
58-
* method and use exist construct to build the new <init> method.
58+
* method and use exist construct to build the new
59+
* <code>{@literal <init>}</code> method.
5960
*
6061
* @param compSootClass
6162
* @param intentSootField

soot-infoflow-android/src/soot/jimple/infoflow/android/manifest/BaseProcessManifest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,7 @@ public BaseProcessManifest(InputStream manifestIS, ARSCFileParser arscParser) th
163163
* by the given {@link InputStream}.
164164
*
165165
* @param manifestIS InputStream for an AppManifest.
166-
* @throws IOException if an I/O error occurs.
167-
* @throws XmlPullParserException can occur due to a malformed manifest.
166+
* @throws IOException if an I/O error occurs.
168167
*/
169168
protected void handle(InputStream manifestIS) throws IOException {
170169
this.axml = new AXmlHandler(manifestIS);

soot-infoflow-android/src/soot/jimple/infoflow/android/source/parsers/xml/XMLSourceSinkParser.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ public static XMLSourceSinkParser fromStream(InputStream inputStream, ICategoryF
106106
/**
107107
* Creates a new instance of the {@link XMLSourceSinkParser} class
108108
*
109-
* @param filter A filter for excluding certain categories of sources and sinks
109+
* @param categoryFilter A filter for excluding certain categories of sources
110+
* and sinks
110111
*/
111112
protected XMLSourceSinkParser(ICategoryFilter categoryFilter) {
112113
this.sourcesAndSinks = new HashMultiMap<>();
@@ -125,8 +126,10 @@ protected void buildSourceSinkLists() {
125126
MethodSourceSinkDefinition methodSrc = (MethodSourceSinkDefinition) sourceDef;
126127
if (methodSrc.getCallType() == CallType.Return) {
127128
String mname = methodSrc.getMethod().getMethodName();
128-
logger.error(String.format("Error while building sources for %s: CallType Return is not " +
129-
"supported for Source Definitions. The invalid definition is ignored.", mname));
129+
logger.error(String.format(
130+
"Error while building sources for %s: CallType Return is not "
131+
+ "supported for Source Definitions. The invalid definition is ignored.",
132+
mname));
130133
sourceDef = null;
131134
} else if (methodSrc.getMethod() instanceof AndroidMethod) {
132135
AndroidMethod am = (AndroidMethod) methodSrc.getMethod();

soot-infoflow-summaries/src/soot/jimple/infoflow/methodSummary/xml/AbstractXMLReader.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ abstract class AbstractXMLReader {
2727
* Checks whether the given XML is valid against the XSD for the new data
2828
* format.
2929
*
30-
* @param is The stream from which to read the XML data
30+
* @param reader The reader from which to read the XML data
31+
* @param xsdFilePath the path to the XSD schema file
3132
* @return true = valid XML false = invalid XML
3233
* @throws IOException
3334
*/

soot-infoflow/src/soot/jimple/infoflow/InfoflowConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ public void setResultSerializationTimeout(long timeout) {
961961
* Gets the timeout for the result serialization process in seconds. Writing out
962962
* the results is aborted if it takes longer than the given amount of time.
963963
*
964-
* @result The maximum time for writing out the results in seconds
964+
* @return The maximum time for writing out the results in seconds
965965
*/
966966
public long getResultSerializationTimeout() {
967967
return this.resultSerializationTimeout;

soot-infoflow/src/soot/jimple/infoflow/aliasing/Aliasing.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,10 @@ public LocalMustAliasAnalysis getMustAliasAnalysis(Stmt stmt) {
337337
/**
338338
* Checks whether the given newly created taint can have an alias at the given
339339
* statement. Assume a statement a.x = source(). This will check whether
340-
* tainting a.<?> can induce new aliases or not.
340+
* tainting <code>{@literal a.<?>}</code> can induce new aliases or not.
341341
*
342342
* @param val The value which gets tainted
343+
*
343344
* @param source The source from which the taints comes from
344345
* @return True if the analysis must look for aliases for the newly constructed
345346
* taint, otherwise false

0 commit comments

Comments
 (0)