Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Schumacher2010-07-12 17:37:10 +0000
committerJeff Schumacher2010-07-12 19:54:01 +0000
commita20e6f6fec7a696047df86f7d6a85863c4335d83 (patch)
treeaa1c24a92bedf4377c2b6b31c711922b7fcc223a
parent9a48de86d892a3a1f028f4899f34898e58d759b3 (diff)
downloadjgit-a20e6f6fec7a696047df86f7d6a85863c4335d83.tar.gz
jgit-a20e6f6fec7a696047df86f7d6a85863c4335d83.tar.xz
jgit-a20e6f6fec7a696047df86f7d6a85863c4335d83.zip
Fixed Misleading Javadoc
The javadoc for the setRenameLimit method in RenameDetector said that you could only have limits in the range (0,100), implying that 0 and 100 were illegal inputs. The code, however, allowed 0 and 100. I changed the javadoc to say that the range [0,100] was legal. I also documented the IllegalArgumentException that is thrown if the limit is outside that range. Change-Id: I916838f254859f6f0e1516bb55b8e7dc87e57dc2
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/diff/RenameDetector.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/diff/RenameDetector.java b/org.eclipse.jgit/src/org/eclipse/jgit/diff/RenameDetector.java
index 87a67a79c6..04e669ffe9 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/diff/RenameDetector.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/diff/RenameDetector.java
@@ -146,7 +146,9 @@ public class RenameDetector {
* that approximately 60% of the bytes in the files are identical.
*
* @param score
- * new rename score, must be within (0, 100).
+ * new rename score, must be within [0, 100].
+ * @throws IllegalArgumentException
+ * the score was not within [0, 100].
*/
public void setRenameScore(int score) {
if (score < 0 || score > 100)

Back to the top