japi-cvs Mailing List for JAPI (Page 2)
Status: Beta
Brought to you by:
christianhujer
You can subscribe to this list here.
| 2006 |
Jan
|
Feb
|
Mar
|
Apr
(115) |
May
(11) |
Jun
(5) |
Jul
(2) |
Aug
(10) |
Sep
(35) |
Oct
(14) |
Nov
(49) |
Dec
(27) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2007 |
Jan
(57) |
Feb
(1) |
Mar
|
Apr
(2) |
May
(25) |
Jun
(134) |
Jul
(76) |
Aug
(34) |
Sep
(27) |
Oct
(5) |
Nov
|
Dec
(1) |
| 2008 |
Jan
(3) |
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(63) |
Nov
(30) |
Dec
(43) |
| 2009 |
Jan
(10) |
Feb
(420) |
Mar
(67) |
Apr
(3) |
May
(61) |
Jun
(21) |
Jul
(19) |
Aug
|
Sep
(6) |
Oct
(16) |
Nov
(1) |
Dec
|
| 2010 |
Jan
(1) |
Feb
|
Mar
|
Apr
(7) |
May
(3) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
|
From: <chr...@us...> - 2009-10-05 00:29:47
|
Revision: 1387
http://japi.svn.sourceforge.net/japi/?rev=1387&view=rev
Author: christianhujer
Date: 2009-10-05 00:29:39 +0000 (Mon, 05 Oct 2009)
Log Message:
-----------
Some code improvements.
Modified Paths:
--------------
tools/archStat/trunk/src/prj/net/sf/japi/archstat/ArchStat.java
Modified: tools/archStat/trunk/src/prj/net/sf/japi/archstat/ArchStat.java
===================================================================
--- tools/archStat/trunk/src/prj/net/sf/japi/archstat/ArchStat.java 2009-10-05 00:25:32 UTC (rev 1386)
+++ tools/archStat/trunk/src/prj/net/sf/japi/archstat/ArchStat.java 2009-10-05 00:29:39 UTC (rev 1387)
@@ -55,7 +55,7 @@
}
/** The DocumentBuilder for parsing XML documents. */
- @NotNull private DocumentBuilder db;
+ @NotNull private DocumentBuilder documentBuilder;
/** Whether or not to output memory statistics. */
private boolean memoryStatistics;
@@ -74,7 +74,7 @@
System.err.println("Memory free (start): " + Runtime.getRuntime().freeMemory());
}
final DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
- db = dbf.newDocumentBuilder();
+ documentBuilder = dbf.newDocumentBuilder();
readDefaultCheckers();
final FileStat fileStat = new FileStat(checkers);
for (final String arg : args) {
@@ -137,7 +137,12 @@
*/
public static CharSequence readFile(final File file) throws IOException {
assert file.isFile();
- final StringBuilder sb = new StringBuilder((int) file.length());
+ final long fileLength = file.length();
+ if (fileLength > Integer.MAX_VALUE) {
+ throw new IOException("File too large" + file);
+ }
+ @SuppressWarnings({"NumericCastThatLosesPrecision"})
+ final StringBuilder sb = new StringBuilder((int) fileLength);
final BufferedReader in = new BufferedReader(new FileReader(file));
try {
final char[] buf = new char[BUF_SIZE];
@@ -245,7 +250,7 @@
*/
@Option({"c", "config"})
public void readCheckers(@NotNull final File file) throws SAXException, IOException {
- readCheckers(db.parse(file));
+ readCheckers(documentBuilder.parse(file));
}
/** Reads additional configuration from the specified resource.
@@ -254,7 +259,7 @@
* @throws SAXException in case of XML parsing errors.
*/
private void readCheckers(final URL url) throws SAXException, IOException {
- readCheckers(db.parse(url.openStream()));
+ readCheckers(documentBuilder.parse(url.openStream()));
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <chr...@us...> - 2009-10-05 00:25:42
|
Revision: 1386
http://japi.svn.sourceforge.net/japi/?rev=1386&view=rev
Author: christianhujer
Date: 2009-10-05 00:25:32 +0000 (Mon, 05 Oct 2009)
Log Message:
-----------
Simplify code.
Modified Paths:
--------------
tools/archStat/trunk/src/prj/net/sf/japi/archstat/ArchStat.java
Modified: tools/archStat/trunk/src/prj/net/sf/japi/archstat/ArchStat.java
===================================================================
--- tools/archStat/trunk/src/prj/net/sf/japi/archstat/ArchStat.java 2009-10-05 00:25:14 UTC (rev 1385)
+++ tools/archStat/trunk/src/prj/net/sf/japi/archstat/ArchStat.java 2009-10-05 00:25:32 UTC (rev 1386)
@@ -66,7 +66,7 @@
/** {@inheritDoc} */
@SuppressWarnings({"InstanceMethodNamingConvention", "ProhibitedExceptionDeclared"})
public int run(@NotNull final List<String> args) throws Exception {
- if (args.size() == 0) {
+ if (args.isEmpty()) {
System.err.println("Error: No arguments given.");
return 1;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <chr...@us...> - 2009-10-05 00:25:28
|
Revision: 1385
http://japi.svn.sourceforge.net/japi/?rev=1385&view=rev
Author: christianhujer
Date: 2009-10-05 00:25:14 +0000 (Mon, 05 Oct 2009)
Log Message:
-----------
Update project key.
Modified Paths:
--------------
tools/archStat/trunk/archStat.ipr
Modified: tools/archStat/trunk/archStat.ipr
===================================================================
--- tools/archStat/trunk/archStat.ipr 2009-10-05 00:23:51 UTC (rev 1384)
+++ tools/archStat/trunk/archStat.ipr 2009-10-05 00:25:14 UTC (rev 1385)
@@ -844,7 +844,7 @@
</component>
<component name="ProjectFileVersion" converted="true" />
<component name="ProjectKey">
- <option name="state" value="project:///home/cher/svn/sf/japi/tools/archStat/trunk/archStat.ipr" />
+ <option name="state" value="https://japi.svn.sourceforge.net/svnroot/japi/tools/archStat/trunk/archStat.ipr" />
</component>
<component name="ProjectModuleManager">
<modules>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <chr...@us...> - 2009-10-05 00:24:08
|
Revision: 1384
http://japi.svn.sourceforge.net/japi/?rev=1384&view=rev
Author: christianhujer
Date: 2009-10-05 00:23:51 +0000 (Mon, 05 Oct 2009)
Log Message:
-----------
Make archStat a standalone IDEA project.
Modified Paths:
--------------
tools/archStat/trunk/archStat.iml
Added Paths:
-----------
tools/archStat/trunk/archStat.ipr
Modified: tools/archStat/trunk/archStat.iml
===================================================================
--- tools/archStat/trunk/archStat.iml 2009-10-05 00:21:36 UTC (rev 1383)
+++ tools/archStat/trunk/archStat.iml 2009-10-05 00:23:51 UTC (rev 1384)
@@ -27,7 +27,167 @@
<SOURCES />
</library>
</orderEntry>
- <orderEntry type="module" module-name="libs-argparser" />
+ <orderEntry type="module-library">
+ <library>
+ <CLASSES>
+ <root url="jar://$MODULE_DIR$/lib/japi-lib-argparser.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
</component>
+ <component name="copyright">
+ <Base>
+ <setting name="state" value="1" />
+ </Base>
+ <LanguageOptions name="HTML">
+ <option name="templateOptions">
+ <value>
+ <option name="block" value="true" />
+ <option name="separateBefore" value="false" />
+ <option name="separateAfter" value="false" />
+ <option name="prefixLines" value="true" />
+ <option name="lenBefore" value="80" />
+ <option name="lenAfter" value="80" />
+ <option name="box" value="false" />
+ <option name="filler" value="$TEMPLATE$" />
+ </value>
+ </option>
+ <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." />
+ <option name="keyword" value="Copyright" />
+ <option name="fileTypeOverride" value="2" />
+ <option name="relativeBefore" value="true" />
+ <option name="addBlankAfter" value="true" />
+ <option name="fileLocation" value="1" />
+ <option name="useAlternate" value="false" />
+ </LanguageOptions>
+ <LanguageOptions name="JAVA">
+ <option name="templateOptions">
+ <value>
+ <option name="block" value="true" />
+ <option name="separateBefore" value="false" />
+ <option name="separateAfter" value="false" />
+ <option name="prefixLines" value="true" />
+ <option name="lenBefore" value="80" />
+ <option name="lenAfter" value="80" />
+ <option name="box" value="false" />
+ <option name="filler" value="$TEMPLATE$" />
+ </value>
+ </option>
+ <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." />
+ <option name="keyword" value="Copyright" />
+ <option name="fileTypeOverride" value="2" />
+ <option name="relativeBefore" value="true" />
+ <option name="addBlankAfter" value="true" />
+ <option name="fileLocation" value="1" />
+ <option name="useAlternate" value="false" />
+ </LanguageOptions>
+ <LanguageOptions name="JSP">
+ <option name="templateOptions">
+ <value>
+ <option name="block" value="true" />
+ <option name="separateBefore" value="false" />
+ <option name="separateAfter" value="false" />
+ <option name="prefixLines" value="true" />
+ <option name="lenBefore" value="80" />
+ <option name="lenAfter" value="80" />
+ <option name="box" value="false" />
+ <option name="filler" value="$TEMPLATE$" />
+ </value>
+ </option>
+ <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." />
+ <option name="keyword" value="Copyright" />
+ <option name="fileTypeOverride" value="2" />
+ <option name="relativeBefore" value="true" />
+ <option name="addBlankAfter" value="true" />
+ <option name="fileLocation" value="1" />
+ <option name="useAlternate" value="false" />
+ </LanguageOptions>
+ <LanguageOptions name="JavaScript">
+ <option name="templateOptions">
+ <value>
+ <option name="block" value="true" />
+ <option name="separateBefore" value="false" />
+ <option name="separateAfter" value="false" />
+ <option name="prefixLines" value="true" />
+ <option name="lenBefore" value="80" />
+ <option name="lenAfter" value="80" />
+ <option name="box" value="false" />
+ <option name="filler" value="$TEMPLATE$" />
+ </value>
+ </option>
+ <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." />
+ <option name="keyword" value="Copyright" />
+ <option name="fileTypeOverride" value="2" />
+ <option name="relativeBefore" value="true" />
+ <option name="addBlankAfter" value="true" />
+ <option name="fileLocation" value="1" />
+ <option name="useAlternate" value="false" />
+ </LanguageOptions>
+ <LanguageOptions name="Properties">
+ <option name="templateOptions">
+ <value>
+ <option name="block" value="true" />
+ <option name="separateBefore" value="false" />
+ <option name="separateAfter" value="false" />
+ <option name="prefixLines" value="true" />
+ <option name="lenBefore" value="80" />
+ <option name="lenAfter" value="80" />
+ <option name="box" value="false" />
+ <option name="filler" value="$TEMPLATE$" />
+ </value>
+ </option>
+ <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." />
+ <option name="keyword" value="Copyright" />
+ <option name="fileTypeOverride" value="2" />
+ <option name="relativeBefore" value="true" />
+ <option name="addBlankAfter" value="true" />
+ <option name="fileLocation" value="1" />
+ <option name="useAlternate" value="false" />
+ </LanguageOptions>
+ <LanguageOptions name="XML">
+ <option name="templateOptions">
+ <value>
+ <option name="block" value="true" />
+ <option name="separateBefore" value="false" />
+ <option name="separateAfter" value="false" />
+ <option name="prefixLines" value="true" />
+ <option name="lenBefore" value="80" />
+ <option name="lenAfter" value="80" />
+ <option name="box" value="false" />
+ <option name="filler" value="$TEMPLATE$" />
+ </value>
+ </option>
+ <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." />
+ <option name="keyword" value="Copyright" />
+ <option name="fileTypeOverride" value="2" />
+ <option name="relativeBefore" value="true" />
+ <option name="addBlankAfter" value="true" />
+ <option name="fileLocation" value="1" />
+ <option name="useAlternate" value="false" />
+ </LanguageOptions>
+ <LanguageOptions name="__TEMPLATE__">
+ <option name="templateOptions">
+ <value>
+ <option name="block" value="true" />
+ <option name="separateBefore" value="false" />
+ <option name="separateAfter" value="false" />
+ <option name="prefixLines" value="true" />
+ <option name="lenBefore" value="80" />
+ <option name="lenAfter" value="80" />
+ <option name="box" value="false" />
+ <option name="filler" value="$TEMPLATE$" />
+ </value>
+ </option>
+ <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." />
+ <option name="keyword" value="Copyright" />
+ <option name="fileTypeOverride" value="4" />
+ <option name="relativeBefore" value="true" />
+ <option name="addBlankAfter" value="true" />
+ <option name="fileLocation" value="1" />
+ <option name="useAlternate" value="false" />
+ </LanguageOptions>
+ </component>
</module>
Added: tools/archStat/trunk/archStat.ipr
===================================================================
--- tools/archStat/trunk/archStat.ipr (rev 0)
+++ tools/archStat/trunk/archStat.ipr 2009-10-05 00:23:51 UTC (rev 1384)
@@ -0,0 +1,888 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project relativePaths="false" version="4">
+ <component name="BuildJarProjectSettings">
+ <option name="BUILD_JARS_ON_MAKE" value="false" />
+ </component>
+ <component name="CodeStyleSettingsManager">
+ <option name="PER_PROJECT_SETTINGS" />
+ <option name="USE_PER_PROJECT_SETTINGS" value="false" />
+ </component>
+ <component name="CompilerConfiguration">
+ <option name="DEFAULT_COMPILER" value="Javac" />
+ <option name="DEPLOY_AFTER_MAKE" value="0" />
+ <resourceExtensions>
+ <entry name=".+\.(properties|xml|html|dtd|tld)" />
+ <entry name=".+\.(gif|png|jpeg|jpg)" />
+ </resourceExtensions>
+ <wildcardResourcePatterns>
+ <entry name="?*.properties" />
+ <entry name="?*.xml" />
+ <entry name="?*.gif" />
+ <entry name="?*.png" />
+ <entry name="?*.jpeg" />
+ <entry name="?*.jpg" />
+ <entry name="?*.html" />
+ <entry name="?*.dtd" />
+ <entry name="?*.tld" />
+ <entry name="?*.ftl" />
+ </wildcardResourcePatterns>
+ </component>
+ <component name="DependencyValidationManager">
+ <option name="SKIP_IMPORT_STATEMENTS" value="false" />
+ </component>
+ <component name="EclipseCompilerSettings">
+ <option name="DEBUGGING_INFO" value="true" />
+ <option name="GENERATE_NO_WARNINGS" value="true" />
+ <option name="DEPRECATION" value="false" />
+ <option name="ADDITIONAL_OPTIONS_STRING" value="" />
+ <option name="MAXIMUM_HEAP_SIZE" value="128" />
+ </component>
+ <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
+ <component name="IdProvider" IDEtalkID="3252B0EE1010872AF5D1E872ECBFD2E1" />
+ <component name="InspectionProjectProfileManager">
+ <option name="PROJECT_PROFILE" value="Project Default" />
+ <option name="USE_PROJECT_LEVEL_SETTINGS" value="false" />
+ <scopes />
+ <profiles>
+ <profile version="1.0" is_locked="false">
+ <option name="myName" value="Project Default" />
+ <option name="myLocal" value="false" />
+ <inspection_tool class="JavaDoc" level="WARNING" enabled="true">
+ <option name="TOP_LEVEL_CLASS_OPTIONS">
+ <value>
+ <option name="ACCESS_JAVADOC_REQUIRED_FOR" value="none" />
+ <option name="REQUIRED_TAGS" value="" />
+ </value>
+ </option>
+ <option name="INNER_CLASS_OPTIONS">
+ <value>
+ <option name="ACCESS_JAVADOC_REQUIRED_FOR" value="none" />
+ <option name="REQUIRED_TAGS" value="" />
+ </value>
+ </option>
+ <option name="METHOD_OPTIONS">
+ <value>
+ <option name="ACCESS_JAVADOC_REQUIRED_FOR" value="none" />
+ <option name="REQUIRED_TAGS" value="@return@param@throws or @exception" />
+ </value>
+ </option>
+ <option name="FIELD_OPTIONS">
+ <value>
+ <option name="ACCESS_JAVADOC_REQUIRED_FOR" value="none" />
+ <option name="REQUIRED_TAGS" value="" />
+ </value>
+ </option>
+ <option name="IGNORE_DEPRECATED" value="false" />
+ <option name="IGNORE_JAVADOC_PERIOD" value="true" />
+ <option name="myAdditionalJavadocTags" value="note" />
+ </inspection_tool>
+ <inspection_tool class="OnDemandImport" level="WARNING" enabled="true" />
+ <inspection_tool class="SamePackageImport" level="WARNING" enabled="true" />
+ <inspection_tool class="JavaLangImport" level="WARNING" enabled="true" />
+ <inspection_tool class="RedundantImport" level="WARNING" enabled="true" />
+ <inspection_tool class="UnusedImport" level="WARNING" enabled="true" />
+ <inspection_tool class="EmptyFinallyBlockJS" level="WARNING" enabled="true" />
+ <inspection_tool class="EmptyFinallyBlock" level="WARNING" enabled="true" />
+ <inspection_tool class="ContinueOrBreakFromFinallyBlock" level="WARNING" enabled="true" />
+ <inspection_tool class="FinallyBlockCannotCompleteNormally" level="WARNING" enabled="true" />
+ <inspection_tool class="NonFinalFieldOfException" level="WARNING" enabled="true" />
+ <inspection_tool class="ReturnFromFinallyBlock" level="WARNING" enabled="true" />
+ <inspection_tool class="ThrowFromFinallyBlock" level="WARNING" enabled="true" />
+ <inspection_tool class="PublicField" level="WARNING" enabled="true">
+ <option name="ignoreEnums" value="false" />
+ </inspection_tool>
+ <inspection_tool class="ProtectedField" level="WARNING" enabled="true" />
+ <inspection_tool class="PackageVisibleField" level="WARNING" enabled="true" />
+ <inspection_tool class="FinalPrivateMethod" level="WARNING" enabled="true" />
+ <inspection_tool class="FieldMayBeFinal" level="WARNING" enabled="true" />
+ <inspection_tool class="LocalCanBeFinal" level="WARNING" enabled="true">
+ <option name="REPORT_VARIABLES" value="true" />
+ <option name="REPORT_PARAMETERS" value="true" />
+ </inspection_tool>
+ <inspection_tool class="NoExplicitFinalizeCalls" level="WARNING" enabled="true" />
+ <inspection_tool class="FinalizeCallsSuperFinalize" level="WARNING" enabled="true">
+ <option name="m_ignoreForObjectSubclasses" value="false" />
+ </inspection_tool>
+ <inspection_tool class="FinalizeNotProtected" level="WARNING" enabled="true" />
+ <inspection_tool class="JDBCResource" level="WARNING" enabled="true" />
+ <inspection_tool class="IOResource" level="WARNING" enabled="true" />
+ <inspection_tool class="ChannelResource" level="WARNING" enabled="true" />
+ <inspection_tool class="HibernateResource" level="WARNING" enabled="true" />
+ <inspection_tool class="JNDIResource" level="WARNING" enabled="true" />
+ <inspection_tool class="SocketResource" level="WARNING" enabled="true" />
+ <inspection_tool class="PublicStaticArrayField" level="WARNING" enabled="true" />
+ <inspection_tool class="PublicStaticCollectionField" level="WARNING" enabled="true" />
+ <inspection_tool class="SerialVersionUIDNotStaticFinal" level="WARNING" enabled="true" />
+ <inspection_tool class="ComparatorNotSerializable" level="WARNING" enabled="true" />
+ <inspection_tool class="NonSerializableWithSerialVersionUIDField" level="WARNING" enabled="true" />
+ <inspection_tool class="SerializableWithUnconstructableAncestor" level="WARNING" enabled="true" />
+ <inspection_tool class="SerializableHasSerialVersionUIDField" level="WARNING" enabled="true">
+ <option name="superClassString" value="java.awt.Component" />
+ </inspection_tool>
+ <inspection_tool class="SerializableInnerClassHasSerialVersionUIDField" level="WARNING" enabled="true">
+ <option name="superClassString" value="java.awt.Component" />
+ </inspection_tool>
+ <inspection_tool class="SerializableInnerClassWithNonSerializableOuterClass" level="WARNING" enabled="true">
+ <option name="superClassString" value="java.awt.Component" />
+ </inspection_tool>
+ <inspection_tool class="TransientFieldInNonSerializableClass" level="WARNING" enabled="true" />
+ <inspection_tool class="TransientFieldNotInitialized" level="WARNING" enabled="true" />
+ <inspection_tool class="MagicNumber" level="WARNING" enabled="true">
+ <option name="m_ignoreInHashCode" value="true" />
+ </inspection_tool>
+ <inspection_tool class="RedundantImplements" level="WARNING" enabled="true" />
+ <inspection_tool class="ReturnThis" level="WARNING" enabled="true" />
+ <inspection_tool class="UnnecessaryInterfaceModifier" level="WARNING" enabled="true" />
+ <inspection_tool class="PatternValidation" level="WARNING" enabled="true">
+ <option name="CHECK_NON_CONSTANT_VALUES" value="true" />
+ </inspection_tool>
+ <inspection_tool class="PatternNotApplicable" level="ERROR" enabled="true" />
+ <inspection_tool class="PatternOverriddenByNonAnnotatedMethod" level="WARNING" enabled="true" />
+ <inspection_tool class="BooleanConstructor" level="WARNING" enabled="true" />
+ <inspection_tool class="ToArrayCallWithZeroLengthArrayArgument" level="WARNING" enabled="true" />
+ <inspection_tool class="ConstantStringIntern" level="WARNING" enabled="true" />
+ <inspection_tool class="CallToSimpleGetterInClass" level="WARNING" enabled="true">
+ <option name="ignoreGetterCallsOnOtherObjects" value="false" />
+ </inspection_tool>
+ <inspection_tool class="CallToSimpleSetterInClass" level="WARNING" enabled="true">
+ <option name="ignoreSetterCallsOnOtherObjects" value="false" />
+ </inspection_tool>
+ <inspection_tool class="TrivialStringConcatenation" level="WARNING" enabled="true" />
+ <inspection_tool class="StringBufferReplaceableByString" level="WARNING" enabled="true" />
+ <inspection_tool class="EqualsHashCodeCalledOnUrl" level="WARNING" enabled="true" />
+ <inspection_tool class="FieldMayBeStatic" level="WARNING" enabled="true" />
+ <inspection_tool class="InnerClassMayBeStatic" level="WARNING" enabled="true" />
+ <inspection_tool class="InstantiatingObjectToGetClassObject" level="WARNING" enabled="true" />
+ <inspection_tool class="KeySetIterationMayUseEntrySet" level="WARNING" enabled="true" />
+ <inspection_tool class="ManualArrayCopy" level="WARNING" enabled="true" />
+ <inspection_tool class="ManualArrayToCollectionCopy" level="WARNING" enabled="true" />
+ <inspection_tool class="CollectionContainsUrl" level="WARNING" enabled="true" />
+ <inspection_tool class="MapReplaceableByEnumMap" level="WARNING" enabled="true" />
+ <inspection_tool class="MethodMayBeStatic" level="WARNING" enabled="true">
+ <option name="m_onlyPrivateOrFinal" value="false" />
+ <option name="m_ignoreEmptyMethods" value="true" />
+ </inspection_tool>
+ <inspection_tool class="StringReplaceableByStringBuffer" level="WARNING" enabled="true">
+ <option name="onlyWarnOnLoop" value="true" />
+ </inspection_tool>
+ <inspection_tool class="ObjectAllocationInLoop" level="WARNING" enabled="true" />
+ <inspection_tool class="SubstringZero" level="WARNING" enabled="true" />
+ <inspection_tool class="StringToString" level="WARNING" enabled="true" />
+ <inspection_tool class="RedundantStringFormatCall" level="WARNING" enabled="true" />
+ <inspection_tool class="StringConstructor" level="WARNING" enabled="true">
+ <option name="ignoreSubstringArguments" value="false" />
+ </inspection_tool>
+ <inspection_tool class="SetReplaceableByEnumSet" level="WARNING" enabled="true" />
+ <inspection_tool class="LengthOneStringsInConcatenation" level="WARNING" enabled="true" />
+ <inspection_tool class="LengthOneStringInIndexOf" level="WARNING" enabled="true" />
+ <inspection_tool class="SizeReplaceableByIsEmpty" level="WARNING" enabled="true">
+ <option name="ignoreNegations" value="false" />
+ </inspection_tool>
+ <inspection_tool class="StringConcatenationInLoops" level="WARNING" enabled="true">
+ <option name="m_ignoreUnlessAssigned" value="false" />
+ </inspection_tool>
+ <inspection_tool class="StringConcatenationInsideStringBufferAppend" level="WARNING" enabled="true" />
+ <inspection_tool class="StringEqualsEmptyString" level="WARNING" enabled="true" />
+ <inspection_tool class="StringBufferMustHaveInitialCapacity" level="WARNING" enabled="true" />
+ <inspection_tool class="StringBufferReplaceableByStringBuilder" level="WARNING" enabled="true" />
+ <inspection_tool class="StringBufferToStringInConcatenation" level="WARNING" enabled="true" />
+ <inspection_tool class="TailRecursion" level="WARNING" enabled="true" />
+ <inspection_tool class="UnnecessaryTemporaryOnConversionFromString" level="WARNING" enabled="true" />
+ <inspection_tool class="UnnecessaryTemporaryOnConversionToString" level="WARNING" enabled="true" />
+ <inspection_tool class="JavaLangReflect" level="WARNING" enabled="true" />
+ <inspection_tool class="RandomDoubleForRandomInteger" level="WARNING" enabled="true" />
+ <inspection_tool class="RuntimeExec" level="WARNING" enabled="true" />
+ <inspection_tool class="SystemExit" level="WARNING" enabled="true" />
+ <inspection_tool class="SystemGetenv" level="WARNING" enabled="true" />
+ <inspection_tool class="HardcodedFileSeparators" level="WARNING" enabled="true">
+ <option name="m_recognizeExampleMediaType" value="false" />
+ </inspection_tool>
+ <inspection_tool class="HardcodedLineSeparators" level="WARNING" enabled="true" />
+ <inspection_tool class="NativeMethods" level="WARNING" enabled="true" />
+ <inspection_tool class="UseOfAWTPeerClass" level="WARNING" enabled="true" />
+ <inspection_tool class="UseOfJDBCDriverClass" level="WARNING" enabled="true" />
+ <inspection_tool class="UseOfProcessBuilder" level="WARNING" enabled="true" />
+ <inspection_tool class="UseOfSunClasses" level="WARNING" enabled="true" />
+ <inspection_tool class="ObjectToString" level="WARNING" enabled="true" />
+ <inspection_tool class="ReplaceAllDot" level="WARNING" enabled="true" />
+ <inspection_tool class="CastConflictsWithInstanceof" level="WARNING" enabled="true" />
+ <inspection_tool class="CastToIncompatibleInterface" level="WARNING" enabled="true" />
+ <inspection_tool class="CollectionAddedToSelf" level="WARNING" enabled="true" />
+ <inspection_tool class="ComparableImplementedButEqualsNotOverridden" level="WARNING" enabled="true" />
+ <inspection_tool class="ComparatorMethodParameterNotUsed" level="WARNING" enabled="true" />
+ <inspection_tool class="MisspelledCompareTo" level="WARNING" enabled="true" />
+ <inspection_tool class="NullArgumentToVariableArgMethod" level="WARNING" enabled="true" />
+ <inspection_tool class="PrimitiveArrayArgumentToVariableArgMethod" level="WARNING" enabled="true" />
+ <inspection_tool class="ConstantConditions" level="WARNING" enabled="true">
+ <option name="SUGGEST_NULLABLE_ANNOTATIONS" value="false" />
+ <option name="DONT_REPORT_TRUE_ASSERT_STATEMENTS" value="false" />
+ </inspection_tool>
+ <inspection_tool class="CovariantCompareTo" level="WARNING" enabled="true" />
+ <inspection_tool class="CovariantEquals" level="WARNING" enabled="true" />
+ <inspection_tool class="EmptyInitializer" level="WARNING" enabled="true" />
+ <inspection_tool class="MisspelledEquals" level="WARNING" enabled="true" />
+ <inspection_tool class="EqualsBetweenInconvertibleTypes" level="WARNING" enabled="true" />
+ <inspection_tool class="ArrayEquals" level="WARNING" enabled="true" />
+ <inspection_tool class="EqualsWhichDoesntCheckParameterClass" level="WARNING" enabled="true" />
+ <inspection_tool class="ForLoopThatDoesntUseLoopVariable" level="WARNING" enabled="true" />
+ <inspection_tool class="MisspelledHashcode" level="WARNING" enabled="true" />
+ <inspection_tool class="ImplicitArrayToString" level="WARNING" enabled="true" />
+ <inspection_tool class="InfiniteRecursion" level="WARNING" enabled="true" />
+ <inspection_tool class="InstanceofIncompatibleInterface" level="WARNING" enabled="true" />
+ <inspection_tool class="InstantiationOfUtilityClass" level="WARNING" enabled="true" />
+ <inspection_tool class="IteratorHasNextCallsIteratorNext" level="WARNING" enabled="true" />
+ <inspection_tool class="IteratorNextDoesNotThrowNoSuchElementException" level="WARNING" enabled="true" />
+ <inspection_tool class="MalformedFormatString" level="WARNING" enabled="true" />
+ <inspection_tool class="MalformedRegex" level="WARNING" enabled="true" />
+ <inspection_tool class="MalformedXPath" level="WARNING" enabled="true" />
+ <inspection_tool class="MismatchedCollectionQueryUpdate" level="WARNING" enabled="true" />
+ <inspection_tool class="MismatchedArrayReadWrite" level="WARNING" enabled="true" />
+ <inspection_tool class="CompareToUsesNonFinalVariable" level="WARNING" enabled="true" />
+ <inspection_tool class="EqualsUsesNonFinalVariable" level="WARNING" enabled="true" />
+ <inspection_tool class="HashCodeUsesNonFinalVariable" level="WARNING" enabled="true" />
+ <inspection_tool class="NonShortCircuitBoolean" level="WARNING" enabled="true" />
+ <inspection_tool class="NullableProblems" level="WARNING" enabled="true">
+ <option name="REPORT_NULLABLE_METHOD_OVERRIDES_NOTNULL" value="true" />
+ <option name="REPORT_NOT_ANNOTATED_METHOD_OVERRIDES_NOTNULL" value="true" />
+ <option name="REPORT_NOTNULL_PARAMETER_OVERRIDES_NULLABLE" value="true" />
+ <option name="REPORT_NOT_ANNOTATED_PARAMETER_OVERRIDES_NOTNULL" value="true" />
+ <option name="REPORT_NOT_ANNOTATED_GETTER" value="true" />
+ <option name="REPORT_NOT_ANNOTATED_SETTER_PARAMETER" value="true" />
+ <option name="REPORT_ANNOTATION_NOT_PROPAGATED_TO_OVERRIDERS" value="true" />
+ </inspection_tool>
+ <inspection_tool class="NumberEquality" level="WARNING" enabled="true" />
+ <inspection_tool class="ObjectEquality" level="WARNING" enabled="true">
+ <option name="m_ignoreEnums" value="true" />
+ <option name="m_ignoreClassObjects" value="false" />
+ <option name="m_ignorePrivateConstructors" value="false" />
+ </inspection_tool>
+ <inspection_tool class="ObjectEqualsNull" level="WARNING" enabled="true" />
+ <inspection_tool class="VariableNotUsedInsideIf" level="WARNING" enabled="true" />
+ <inspection_tool class="ReflectionForUnavailableAnnotation" level="WARNING" enabled="true" />
+ <inspection_tool class="IgnoreResultOfCall" level="WARNING" enabled="true">
+ <option name="m_reportAllNonLibraryCalls" value="false" />
+ <option name="callCheckString" value="java.io.InputStream,read,java.io.InputStream,skip,java.lang.StringBuffer,toString,java.lang.StringBuilder,toString,java.lang.String,.*,java.math.BigInteger,.*,java.math.BigDecimal,.*,java.net.InetAddress,.*,java.io.File,.*,java.lang.Object,equals|hashCode" />
+ </inspection_tool>
+ <inspection_tool class="ResultOfObjectAllocationIgnored" level="WARNING" enabled="true" />
+ <inspection_tool class="ReturnNull" level="WARNING" enabled="true">
+ <option name="m_reportObjectMethods" value="true" />
+ <option name="m_reportArrayMethods" value="true" />
+ <option name="m_reportCollectionMethods" value="true" />
+ </inspection_tool>
+ <inspection_tool class="EmptyStatementBody" level="WARNING" enabled="true">
+ <option name="m_reportEmptyBlocks" value="false" />
+ </inspection_tool>
+ <inspection_tool class="StaticFieldReferenceOnSubclass" level="WARNING" enabled="true" />
+ <inspection_tool class="StaticCallOnSubclass" level="WARNING" enabled="true" />
+ <inspection_tool class="StringEquality" level="WARNING" enabled="true" />
+ <inspection_tool class="NewStringBufferWithCharArgument" level="WARNING" enabled="true" />
+ <inspection_tool class="SubtractionInCompareTo" level="WARNING" enabled="true" />
+ <inspection_tool class="SuspiciousToArrayCall" level="WARNING" enabled="true" />
+ <inspection_tool class="SuspiciousSystemArraycopy" level="WARNING" enabled="true" />
+ <inspection_tool class="SuspiciousIndentAfterControlStatement" level="WARNING" enabled="true" />
+ <inspection_tool class="SuspiciousNameCombination" level="WARNING" enabled="true">
+ <group names="x,width,left,right" />
+ <group names="y,height,top,bottom" />
+ </inspection_tool>
+ <inspection_tool class="TextLabelInSwitchStatement" level="WARNING" enabled="true" />
+ <inspection_tool class="ThrowableInstanceNeverThrown" level="WARNING" enabled="true" />
+ <inspection_tool class="ThrowableResultOfMethodCallIgnored" level="WARNING" enabled="true" />
+ <inspection_tool class="MisspelledToString" level="WARNING" enabled="true" />
+ <inspection_tool class="UnusedAssignment" level="WARNING" enabled="true">
+ <option name="REPORT_PREFIX_EXPRESSIONS" value="false" />
+ <option name="REPORT_POSTFIX_EXPRESSIONS" value="true" />
+ <option name="REPORT_REDUNDANT_INITIALIZER" value="true" />
+ </inspection_tool>
+ <inspection_tool class="ArchaicSystemPropertyAccess" level="WARNING" enabled="true" />
+ <inspection_tool class="ResultSetIndexZero" level="WARNING" enabled="true" />
+ <inspection_tool class="UseOfPropertiesAsHashtable" level="WARNING" enabled="true" />
+ <inspection_tool class="CheckNodeTest" level="WARNING" enabled="true" />
+ <inspection_tool class="HardwiredNamespacePrefix" level="WARNING" enabled="true" />
+ <inspection_tool class="ImplicitTypeConversion" level="WARNING" enabled="true">
+ <option name="BITS" value="1720" />
+ <option name="FLAG_EXPLICIT_CONVERSION" value="true" />
+ <option name="IGNORE_NODESET_TO_BOOLEAN_VIA_STRING" value="true" />
+ </inspection_tool>
+ <inspection_tool class="RedundantTypeConversion" level="WARNING" enabled="true">
+ <option name="CHECK_ANY" value="true" />
+ </inspection_tool>
+ <inspection_tool class="IndexZeroUsage" level="WARNING" enabled="true" />
+ <inspection_tool class="XsltDeclarations" level="ERROR" enabled="true" />
+ <inspection_tool class="XsltTemplateInvocation" level="ERROR" enabled="true" />
+ <inspection_tool class="XsltUnusedDeclaration" level="WARNING" enabled="true" />
+ <inspection_tool class="XmlUnboundNsPrefix" level="WARNING" enabled="true" />
+ <inspection_tool class="XmlDuplicatedId" level="ERROR" enabled="true" />
+ <inspection_tool class="AnonymousClassVariableHidesContainingMethodVariable" level="WARNING" enabled="true" />
+ <inspection_tool class="ClassEscapesItsScope" level="WARNING" enabled="true" />
+ <inspection_tool class="FieldHidesSuperclassField" level="WARNING" enabled="true">
+ <option name="m_ignoreInvisibleFields" value="true" />
+ </inspection_tool>
+ <inspection_tool class="AmbiguousMethodCall" level="WARNING" enabled="true" />
+ <inspection_tool class="InnerClassVariableHidesOuterClassVariable" level="WARNING" enabled="true">
+ <option name="m_ignoreInvisibleFields" value="true" />
+ </inspection_tool>
+ <inspection_tool class="LocalVariableHidingMemberVariable" level="WARNING" enabled="true">
+ <option name="m_ignoreInvisibleFields" value="true" />
+ <option name="m_ignoreStaticMethods" value="true" />
+ </inspection_tool>
+ <inspection_tool class="MethodOverloadsParentMethod" level="WARNING" enabled="true" />
+ <inspection_tool class="MethodOverridesPackageLocalMethod" level="WARNING" enabled="true" />
+ <inspection_tool class="MethodOverridesPrivateMethod" level="WARNING" enabled="true" />
+ <inspection_tool class="MethodOverridesStaticMethod" level="WARNING" enabled="true" />
+ <inspection_tool class="TypeParameterHidesVisibleType" level="WARNING" enabled="true" />
+ <inspection_tool class="NoResourceMethodsFound" level="WARNING" enabled="true" />
+ <inspection_tool class="AnnotationHasWrongMIMEType" level="WARNING" enabled="true" />
+ <inspection_tool class="VoidMethodAnnotatedWithGET" level="WARNING" enabled="true" />
+ <inspection_tool class="ResourceMethodInNonResourceClass" level="WARNING" enabled="true" />
+ <inspection_tool class="AmbiguousPathAnnotation" level="WARNING" enabled="true" />
+ <inspection_tool class="WebflowModelInspection" level="ERROR" enabled="true" />
+ <inspection_tool class="RedundantArrayCreation" level="WARNING" enabled="true" />
+ <inspection_tool class="RedundantTypeArguments" level="WARNING" enabled="true" />
+ <inspection_tool class="RedundantCast" level="WARNING" enabled="true" />
+ <inspection_tool class="VtlFileReferencesInspection" level="WARNING" enabled="true" />
+ <inspection_tool class="VtlReferencesInspection" level="WARNING" enabled="true" />
+ <inspection_tool class="VtlTypesInspection" level="WARNING" enabled="true" />
+ <inspection_tool class="VtlInterpolationsInspection" level="ERROR" enabled="true" />
+ <inspection_tool class="GroovyDuplicateSwitchBranch" level="WARNING" enabled="true" />
+ <inspection_tool class="GroovyMethodWithInconsistentReturns" level="WARNING" enabled="true" />
+ <inspection_tool class="GroovyUnreachableStatement" level="WARNING" enabled="true" />
+ <inspection_tool class="AccessToNonThreadSafeStaticFieldFromInstance" level="WARNING" enabled="true">
+ <option name="nonThreadSafeTypes" value="java.text.DateFormat,java.util.Calendar" />
+ </inspection_tool>
+ <inspection_tool class="AccessToStaticFieldLockedOnInstance" level="WARNING" enabled="true" />
+ <inspection_tool class="ArithmeticOnVolatileField" level="WARNING" enabled="true" />
+ <inspection_tool class="AwaitNotInLoop" level="WARNING" enabled="true" />
+ <inspection_tool class="AwaitWithoutCorrespondingSignal" level="WARNING" enabled="true" />
+ <inspection_tool class="BusyWait" level="WARNING" enabled="true" />
+ <inspection_tool class="ObjectNotify" level="WARNING" enabled="true" />
+ <inspection_tool class="ConditionSignal" level="WARNING" enabled="true" />
+ <inspection_tool class="SystemRunFinalizersOnExit" level="WARNING" enabled="true" />
+ <inspection_tool class="ThreadRun" level="WARNING" enabled="true" />
+ <inspection_tool class="ThreadPriority" level="WARNING" enabled="true" />
+ <inspection_tool class="SleepWhileHoldingLock" level="WARNING" enabled="true" />
+ <inspection_tool class="ThreadStartInConstruction" level="WARNING" enabled="true" />
+ <inspection_tool class="ThreadStopSuspendResume" level="WARNING" enabled="true" />
+ <inspection_tool class="ThreadYield" level="WARNING" enabled="true" />
+ <inspection_tool class="CallToNativeMethodWhileLocked" level="WARNING" enabled="true" />
+ <inspection_tool class="ExtendsThread" level="WARNING" enabled="true" />
+ <inspection_tool class="DoubleCheckedLocking" level="WARNING" enabled="true">
+ <option name="ignoreOnVolatileVariables" value="false" />
+ </inspection_tool>
+ <inspection_tool class="EmptySynchronizedStatement" level="WARNING" enabled="true" />
+ <inspection_tool class="FieldAccessedSynchronizedAndUnsynchronized" level="WARNING" enabled="true">
+ <option name="countGettersAndSetters" value="false" />
+ </inspection_tool>
+ <inspection_tool class="ThreadWithDefaultRunMethod" level="WARNING" enabled="true" />
+ <inspection_tool class="SafeLock" level="WARNING" enabled="true" />
+ <inspection_tool class="MethodMayBeSynchronized" level="WARNING" enabled="true" />
+ <inspection_tool class="NestedSynchronizedStatement" level="WARNING" enabled="true" />
+ <inspection_tool class="PublicFieldAccessedInSynchronizedContext" level="WARNING" enabled="true" />
+ <inspection_tool class="NonSynchronizedMethodOverridesSynchronizedMethod" level="WARNING" enabled="true" />
+ <inspection_tool class="NotifyCalledOnCondition" level="WARNING" enabled="true" />
+ <inspection_tool class="NotifyNotInSynchronizedContext" level="WARNING" enabled="true" />
+ <inspection_tool class="NakedNotify" level="WARNING" enabled="true" />
+ <inspection_tool class="NotifyWithoutCorrespondingWait" level="WARNING" enabled="true" />
+ <inspection_tool class="SignalWithoutCorrespondingAwait" level="WARNING" enabled="true" />
+ <inspection_tool class="SynchronizeOnThis" level="WARNING" enabled="true" />
+ <inspection_tool class="SynchronizeOnLock" level="WARNING" enabled="true" />
+ <inspection_tool class="SynchronizeOnNonFinalField" level="WARNING" enabled="true" />
+ <inspection_tool class="SynchronizedOnLiteralObject" level="WARNING" enabled="true" />
+ <inspection_tool class="SynchronizationOnLocalVariableOrMethodParameter" level="WARNING" enabled="true">
+ <option name="reportLocalVariables" value="true" />
+ <option name="reportMethodParameters" value="true" />
+ </inspection_tool>
+ <inspection_tool class="SynchronizedMethod" level="WARNING" enabled="true">
+ <option name="m_includeNativeMethods" value="true" />
+ </inspection_tool>
+ <inspection_tool class="UnconditionalWait" level="WARNING" enabled="true" />
+ <inspection_tool class="VolatileArrayField" level="WARNING" enabled="true" />
+ <inspection_tool class="VolatileLongOrDoubleField" level="WARNING" enabled="true" />
+ <inspection_tool class="WaitCalledOnCondition" level="WARNING" enabled="true" />
+ <inspection_tool class="WaitNotInLoop" level="WARNING" enabled="true" />
+ <inspection_tool class="WaitOrAwaitWithoutTimeout" level="WARNING" enabled="true" />
+ <inspection_tool class="WaitWhileHoldingTwoLocks" level="WARNING" enabled="true" />
+ <inspection_tool class="WaitNotInSynchronizedContext" level="WARNING" enabled="true" />
+ <inspection_tool class="WaitWithoutCorrespondingNotify" level="WARNING" enabled="true" />
+ <inspection_tool class="WhileLoopSpinsOnField" level="WARNING" enabled="true">
+ <option name="ignoreNonEmtpyLoops" value="false" />
+ </inspection_tool>
+ <inspection_tool class="SqlAmbiguousColumnInspection" level="WARNING" enabled="true" />
+ <inspection_tool class="SqlInsertValuesInspection" level="WARNING" enabled="true" />
+ <inspection_tool class="SqlIdentifierInspection" level="WARNING" enabled="true" />
+ <inspection_tool class="SqlResolveInspection" level="WARNING" enabled="true" />
+ <inspection_tool class="SqlTypeInspection" level="WARNING" enabled="true" />
+ <inspection_tool class="UnusedMessageFormatParameter" level="WARNING" enabled="true" />
+ <inspection_tool class="UnusedProperty" level="WARNING" enabled="true" />
+ <inspection_tool class="ClassUnconnectedToPackage" level="WARNING" enabled="true" />
+ <inspection_tool class="PackageInMultipleModules" level="WARNING" enabled="true" />
+ <inspection_tool class="DisjointPackage" level="WARNING" enabled="true" />
+ <inspection_tool class="PackageWithTooFewClasses" level="WARNING" enabled="true">
+ <option name="limit" value="3" />
+ </inspection_tool>
+ <inspection_tool class="PackageWithTooManyClasses" level="WARNING" enabled="true">
+ <option name="limit" value="10" />
+ </inspection_tool>
+ <inspection_tool class="CharUsedInArithmeticContext" level="WARNING" enabled="true" />
+ <inspection_tool class="ComparisonOfShortAndChar" level="WARNING" enabled="true" />
+ <inspection_tool class="ComparisonToNaN" level="WARNING" enabled="true" />
+ <inspection_tool class="ConfusingFloatingPointLiteral" level="WARNING" enabled="true" />
+ <inspection_tool class="ConstantMathCall" level="WARNING" enabled="true" />
+ <inspection_tool class="DivideByZero" level="WARNING" enabled="true" />
+ <inspection_tool class="BigDecimalEquals" level="WARNING" enabled="true" />
+ <inspection_tool class="FloatingPointEquality" level="WARNING" enabled="true" />
+ <inspection_tool class="IntegerDivisionInFloatingPointContext" level="WARNING" enabled="true" />
+ <inspection_tool class="IntegerMultiplicationImplicitCastToLong" level="WARNING" enabled="true" />
+ <inspection_tool class="LongLiteralsEndingWithLowercaseL" level="WARNING" enabled="true" />
+ <inspection_tool class="NonReproducibleMathCall" level="WARNING" enabled="true" />
+ <inspection_tool class="CachedNumberConstructorCall" level="WARNING" enabled="true" />
+ <inspection_tool class="CastThatLosesPrecision" level="WARNING" enabled="true">
+ <option name="ignoreIntegerCharCasts" value="false" />
+ </inspection_tool>
+ <inspection_tool class="OctalAndDecimalIntegersMixed" level="WARNING" enabled="true" />
+ <inspection_tool class="OctalLiteral" level="WARNING" enabled="true" />
+ <inspection_tool class="OverlyComplexArithmeticExpression" level="WARNING" enabled="true">
+ <option name="m_limit" value="6" />
+ </inspection_tool>
+ <inspection_tool class="PointlessArithmeticExpression" level="WARNING" enabled="true">
+ <option name="m_ignoreExpressionsContainingConstants" value="false" />
+ </inspection_tool>
+ <inspection_tool class="BadOddness" level="WARNING" enabled="true" />
+ <inspection_tool class="UnaryPlus" level="WARNING" enabled="true" />
+ <inspection_tool class="UnnecessaryUnaryMinus" level="WARNING" enabled="true" />
+ <inspection_tool class="UnpredictableBigDecimalConstructorCall" level="WARNING" enabled="true" />
+ <inspection_tool class="AnnotationNamingConvention" level="WARNING" enabled="true">
+ <option name="m_regex" value="[A-Z][A-Za-z\d]*" />
+ <option name="m_minLength" value="8" />
+ <option name="m_maxLength" value="64" />
+ </inspection_tool>
+ <inspection_tool class="BooleanMethodNameMustStartWithQuestion" level="WARNING" enabled="true">
+ <option name="questionString" value="is,can,has,should,could,will,shall,check,contains,equals,add,put,remove,startsWith,endsWith" />
+ </inspection_tool>
+ <inspection_tool class="ClassNamePrefixedWithPackageName" level="WARNING" enabled="true" />
+ <inspection_tool class="ClassNameSameAsAncestorName" level="WARNING" enabled="true" />
+ <inspection_tool class="ClassNamingConvention" level="WARNING" enabled="true">
+ <option name="m_regex" value="[A-Z][A-Za-z\d]*" />
+ <option name="m_minLength" value="8" />
+ <option name="m_maxLength" value="64" />
+ </inspection_tool>
+ <inspection_tool class="ConfusingMainMethod" level="WARNING" enabled="true" />
+ <inspection_tool class="ConstantNamingConvention" level="WARNING" enabled="true">
+ <option name="m_regex" value="[A-Z_\d]*" />
+ <option name="m_minLength" value="5" />
+ <option name="m_maxLength" value="32" />
+ </inspection_tool>
+ <inspection_tool class="EnumeratedClassNamingConvention" level="WARNING" enabled="true">
+ <option name="m_regex" value="[A-Z][A-Za-z\d]*" />
+ <option name="m_minLength" value="8" />
+ <option name="m_maxLength" value="64" />
+ </inspection_tool>
+ <inspection_tool class="EnumeratedConstantNamingConvention" level="WARNING" enabled="true">
+ <option name="m_regex" value="[A-Z][A-Za-z\d]*" />
+ <option name="m_minLength" value="5" />
+ <option name="m_maxLength" value="32" />
+ </inspection_tool>
+ <inspection_tool class="ExceptionNameDoesntEndWithException" level="WARNING" enabled="true" />
+ <inspection_tool class="InstanceMethodNamingConvention" level="WARNING" enabled="true">
+ <option name="m_regex" value="[a-z][A-Za-z\d]*" />
+ <option name="m_minLength" value="4" />
+ <option name="m_maxLength" value="32" />
+ </inspection_tool>
+ <inspection_tool class="InstanceVariableNamingConvention" level="WARNING" enabled="true">
+ <option name="m_regex" value="[a-z][A-Za-z\d]*" />
+ <option name="m_minLength" value="5" />
+ <option name="m_maxLength" value="32" />
+ </inspection_tool>
+ <inspection_tool class="InterfaceNamingConvention" level="WARNING" enabled="true">
+ <option name="m_regex" value="[A-Z][A-Za-z\d]*" />
+ <option name="m_minLength" value="8" />
+ <option name="m_maxLength" value="64" />
+ </inspection_tool>
+ <inspection_tool class="LocalVariableNamingConvention" level="WARNING" enabled="true">
+ <option name="m_ignoreForLoopParameters" value="false" />
+ <option name="m_ignoreCatchParameters" value="false" />
+ <option name="m_regex" value="[a-z][A-Za-z\d]*" />
+ <option name="m_minLength" value="1" />
+ <option name="m_maxLength" value="32" />
+ </inspection_tool>
+ <inspection_tool class="MethodNameSameAsClassName" level="WARNING" enabled="true" />
+ <inspection_tool class="MethodNameSameAsParentName" level="WARNING" enabled="true" />
+ <inspection_tool class="MethodNamesDifferOnlyByCase" level="WARNING" enabled="true" />
+ <inspection_tool class="ParameterNamingConvention" level="WARNING" enabled="true">
+ <option name="m_regex" value="[a-z][A-Za-z\d]*" />
+ <option name="m_minLength" value="1" />
+ <option name="m_maxLength" value="20" />
+ </inspection_tool>
+ <inspection_tool class="NonBooleanMethodNameMayNotStartWithQuestion" level="WARNING" enabled="true">
+ <option name="questionString" value="is,can,has,should,could,will,shall,check,contains,equals,startsWith,endsWith" />
+ </inspection_tool>
+ <inspection_tool class="UpperCaseFieldNameNotConstant" level="WARNING" enabled="true" />
+ <inspection_tool class="NonExceptionNameEndsWithException" level="WARNING" enabled="true" />
+ <inspection_tool class="OverloadedMethodsWithSameNumberOfParameters" level="WARNING" enabled="true" />
+ <inspection_tool class="OverloadedVarargsMethod" level="WARNING" enabled="true" />
+ <inspection_tool class="ParameterNameDiffersFromOverriddenParameter" level="WARNING" enabled="true">
+ <option name="m_ignoreSingleCharacterNames" value="false" />
+ <option name="m_ignoreOverridesOfLibraryMethods" value="false" />
+ </inspection_tool>
+ <inspection_tool class="QuestionableName" level="WARNING" enabled="true">
+ <option name="nameString" value="aa,abc,bad,bar,bar2,baz,baz1,baz2,baz3,bb,blah,bogus,bool,cc,dd,defau1t,dummy,dummy2,ee,fa1se,ff,foo,foo1,foo2,foo3,foobar,four,fred,fred1,fred2,gg,hh,hello,hello1,hello2,hello3,ii,nu11,one,silly,silly2,string,two,that,then,three,whi1e,var" />
+ </inspection_tool>
+ <inspection_tool class="StandardVariableNames" level="WARNING" enabled="true" />
+ <inspection_tool class="StaticMethodNamingConvention" level="WARNING" enabled="true">
+ <option name="m_regex" value="[a-z][A-Za-z\d]*" />
+ <option name="m_minLength" value="4" />
+ <option name="m_maxLength" value="32" />
+ </inspection_tool>
+ <inspection_tool class="StaticVariableNamingConvention" level="WARNING" enabled="true">
+ <option name="m_regex" value="[a-z][A-Za-z\d]*" />
+ <option name="m_minLength" value="5" />
+ <option name="m_maxLength" value="32" />
+ </inspection_tool>
+ <inspection_tool class="TypeParameterNamingConvention" level="WARNING" enabled="true">
+ <option name="m_regex" value="[A-Z\d]" />
+ <option name="m_minLength" value="1" />
+ <option name="m_maxLength" value="1" />
+ </inspection_tool>
+ <inspection_tool class="DollarSignInName" level="WARNING" enabled="true" />
+ <inspection_tool class="ModuleWithTooFewClasses" level="WARNING" enabled="true">
+ <option name="limit" value="10" />
+ </inspection_tool>
+ <inspection_tool class="ModuleWithTooManyClasses" level="WARNING" enabled="true">
+ <option name="limit" value="100" />
+ </inspection_tool>
+ <inspection_tool class="ParametersPerConstructor" level="WARNING" enabled="true">
+ <option name="m_limit" value="5" />
+ </inspection_tool>
+ <inspection_tool class="ThreeNegationsPerMethod" level="WARNING" enabled="true">
+ <option name="m_ignoreInEquals" value="true" />
+ </inspection_tool>
+ <inspection_tool class="MethodWithMultipleLoops" level="WARNING" enabled="true" />
+ <inspection_tool class="MultipleReturnPointsPerMethod" level="WARNING" enabled="true">
+ <option name="ignoreGuardClauses" value="false" />
+ <option name="ignoreEqualsMethod" value="false" />
+ <option name="m_limit" value="1" />
+ </inspection_tool>
+ <inspection_tool class="ThrownExceptionsPerMethod" level="WARNING" enabled="true">
+ <option name="m_limit" value="3" />
+ </inspection_tool>
+ <inspection_tool class="ParametersPerMethod" level="WARNING" enabled="true">
+ <option name="m_limit" value="5" />
+ </inspection_tool>
+ <inspection_tool class="CyclomaticComplexity" level="WARNING" enabled="true">
+ <option name="m_limit" value="10" />
+ </inspection_tool>
+ <inspection_tool class="MethodCoupling" level="WARNING" enabled="true">
+ <option name="m_includeJavaClasses" value="false" />
+ <option name="m_includeLibraryClasses" value="false" />
+ <option name="m_limit" value="10" />
+ </inspection_tool>
+ <inspection_tool class="NonCommentSourceStatements" level="WARNING" enabled="true">
+ <option name="m_limit" value="30" />
+ </inspection_tool>
+ <inspection_tool class="NestingDepth" level="WARNING" enabled="true">
+ <option name="m_limit" value="5" />
+ </inspection_tool>
+ <inspection_tool class="SystemGC" level="WARNING" enabled="true" />
+ <inspection_tool class="StaticCollection" level="WARNING" enabled="true">
+ <option name="m_ignoreWeakCollections" value="false" />
+ </inspection_tool>
+ <inspection_tool class="StringBufferField" level="WARNING" enabled="true" />
+ <inspection_tool class="ZeroLengthArrayInitialization" level="WARNING" enabled="true" />
+ <inspection_tool class="MavenModelInspection" level="ERROR" enabled="true" />
+ <inspection_tool class="ClassWithMultipleLoggers" level="WARNING" enabled="true">
+ <option name="loggerClassName" value="java.util.logging.Logger" />
+ </inspection_tool>
+ <inspection_tool class="LogStatementGuardedByLogCondition" level="WARNING" enabled="true">
+ <option name="loggerClassName" value="java.util.logging.Logger" />
+ <option name="loggerMethodAndconditionMethodNames" value="fine,isLoggable(java.util.logging.Level.FINE),finer,isLoggable(java.util.logging.Level.FINER),finest,isLoggable(java.util.logging.Level.FINEST)" />
+ </inspection_tool>
+ <inspection_tool class="LoggerInitializedWithForeignClass" level="WARNING" enabled="true">
+ <option name="loggerClassName" value="org.apache.log4j.Logger" />
+ <option name="loggerFactoryMethodName" value="getLogger" />
+ </inspection_tool>
+ <inspection_tool class="LoggingConditionDisagreesWithLogStatement" level="WARNING" enabled="true" />
+ <inspection_tool class="NonStaticFinalLogger" level="WARNING" enabled="true">
+ <option name="loggerClassName" value="java.util.logging.Logger" />
+ </inspection_tool>
+ <inspection_tool class="InjectionNotApplicable" level="ERROR" enabled="true" />
+ <inspection_tool class="LanguageMismatch" level="WARNING" enabled="true">
+ <option name="CHECK_NON_ANNOTATED_REFERENCES" value="true" />
+ </inspection_tool>
+ <inspection_tool class="UnknownLanguage" level="ERROR" enabled="true" />
+ <inspection_tool class="AssertEqualsBetweenInconvertibleTypes" level="WARNING" enabled="true" />
+ <inspection_tool class="AssertEqualsMayBeAssertSame" level="WARNING" enabled="true" />
+ <inspection_tool class="JUnit4AnnotatedMethodInJUnit3TestCase" level="WARNING" enabled="true" />
+ <inspection_tool class="JUnitAbstractTestClassNamingConvention" level="WARNING" enabled="true">
+ <option name="m_regex" value="[A-Z][A-Za-z\d]*TestCase" />
+ <option name="m_minLength" value="12" />
+ <option name="m_maxLength" value="64" />
+ </inspection_tool>
+ <inspection_tool class="TestCaseWithNoTestMethods" level="WARNING" enabled="true">
+ <option name="ignoreSupers" value="false" />
+ </inspection_tool>
+ <inspection_tool class="JUnitTestClassNamingConvention" level="WARNING" enabled="true">
+ <option name="m_regex" value="[A-Z][A-Za-z\d]*Test" />
+ <option name="m_minLength" value="8" />
+ <option name="m_maxLength" value="64" />
+ </inspection_tool>
+ <inspection_tool class="TestMethodInProductCode" level="WARNING" enabled="true" />
+ <inspection_tool class="TestMethodWithoutAssertion" level="WARNING" enabled="true" />
+ <inspection_tool class="TestCaseInProductCode" level="WARNING" enabled="true" />
+ <inspection_tool class="TestCaseWithConstructor" level="WARNING" enabled="true" />
+ <inspection_tool class="BeforeOrAfterIsPublicVoidNoArg" level="WARNING" enabled="true" />
+ <inspection_tool class="BeforeClassOrAfterClassIsPublicStaticVoidNoArg" level="WARNING" enabled="true" />
+ <inspection_tool class="AssertsWithoutMessages" level="WARNING" enabled="true" />
+ <inspection_tool class="MisorderedAssertEqualsParameters" level="WARNING" enabled="true" />
+ <inspection_tool class="SetupCallsSuperSetup" level="WARNING" enabled="true" />
+ <inspection_tool class="MisspelledSetUp" level="WARNING" enabled="true" />
+ <inspection_tool class="SetupIsPublicVoidNoArg" level="WARNING" enabled="true" />
+ <inspection_tool class="SimplifiableJUnitAssertion" level="WARNING" enabled="true" />
+ <inspection_tool class="StaticSuite" level="WARNING" enabled="true" />
+ <inspection_tool class="TeardownCallsSuperTeardown" level="WARNING" enabled="true" />
+ <inspection_tool class="MisspelledTearDown" level="WARNING" enabled="true" />
+ <inspection_tool class="TeardownIsPublicVoidNoArg" level="WARNING" enabled="true" />
+ <inspection_tool class="TestMethodIsPublicVoidNoArg" level="WARNING" enabled="true" />
+ <inspection_tool class="UnconstructableTestCase" level="WARNING" enabled="true" />
+ <inspection_tool class="FieldHasSetterButNoGetter" level="WARNING" enabled="true" />
+ <inspection_tool class="AnnotationClass" level="WARNING" enabled="true" />
+ <inspection_tool class="EnumerationCanBeIteration" level="WARNING" enabled="true" />
+ <inspection_tool class="AssertAsName" level="WARNING" enabled="true" />
+ <inspection_tool class="EnumAsName" level="WARNING" enabled="true" />
+ <inspection_tool class="AccessStaticViaInstance" level="WARNING" enabled="true" />
+ <inspection_tool class="Deprecation" level="WARNING" enabled="true" />
+ <inspection_tool class="EqualsAndHashcode" level="WARNING" enabled="true" />
+ <inspection_tool class="Dependency" level="ERROR" enabled="true" />
+ <inspection_tool class="SSBasedInspection" level="WARNING" enabled="true" />
+ <inspection_tool class="TestOnlyProblems" level="WARNING" enabled="true" />
+ <inspection_tool class="UNCHECKED_WARNING" level="WARNING" enabled="true" />
+ <inspection_tool class="SillyAssignment" level="WARNING" enabled="true" />
+ <inspection_tool class="WrongPackageStatement" level="ERROR" enabled="true" />
+ <inspection_tool class="UNUSED_IMPORT" level="WARNING" enabled="true" />
+ <inspection_tool class="InfiniteLoopStatement" level="WARNING" enabled="true" />
+ <inspection_tool class="LoopConditionNotUpdatedInsideLoop" level="WARNING" enabled="true">
+ <option name="ignoreIterators" value="false" />
+ </inspection_tool>
+ <inspection_tool class="NonSerializableFieldInSerializableClass" level="WARNING" enabled="true">
+ <option name="superClassString" value="java.awt.Component" />
+ </inspection_tool>
+ <inspection_tool class="NonSerializableObjectBoundToHttpSession" level="WARNING" enabled="true" />
+ <inspection_tool class="NonSerializableObjectPassedToObjectStream" level="WARNING" enabled="true" />
+ <inspection_tool class="ObsoleteCollection" level="WARNING" enabled="true">
+ <option name="ignoreLibraryArguments" value="false" />
+ </inspection_tool>
+ <inspection_tool class="ReturnOfCollectionField" level="WARNING" enabled="true">
+ <option name="ignorePrivateMethods" value="true" />
+ </inspection_tool>
+ <inspection_tool class="ExtendsConcreteCollection" level="WARNING" enabled="true" />
+ <inspection_tool class="CollectionsFieldAccessReplaceableByMethodCall" level="WARNING" enabled="true" />
+ <inspection_tool class="DeclareCollectionAsInterface" level="WARNING" enabled="true">
+ <option name="ignoreLocalVariables" value="false" />
+ <option name="ignorePrivateMethodsAndFields" value="false" />
+ </inspection_tool>
+ <inspection_tool class="TypeMayBeWeakened" level="WARNING" enabled="true">
+ <option name="useRighthandTypeAsWeakestTypeInAssignments" value="true" />
+ <option name="useParameterizedTypeForCollectionMethods" value="true" />
+ </inspection_tool>
+ </profile>
+ </profiles>
+ <list size="0" />
+ </component>
+ <component name="JavacSettings">
+ <option name="DEBUGGING_INFO" value="true" />
+ <option name="GENERATE_NO_WARNINGS" value="false" />
+ <option name="DEPRECATION" value="true" />
+ <option name="ADDITIONAL_OPTIONS_STRING" value="" />
+ <option name="MAXIMUM_HEAP_SIZE" value="128" />
+ </component>
+ <component name="JavadocGenerationManager">
+ <option name="OUTPUT_DIRECTORY" />
+ <option name="OPTION_SCOPE" value="protected" />
+ <option name="OPTION_HIERARCHY" value="true" />
+ <option name="OPTION_NAVIGATOR" value="true" />
+ <option name="OPTION_INDEX" value="true" />
+ <option name="OPTION_SEPARATE_INDEX" value="true" />
+ <option name="OPTION_DOCUMENT_TAG_USE" value="false" />
+ <option name="OPTION_DOCUMENT_TAG_AUTHOR" value="false" />
+ <option name="OPTION_DOCUMENT_TAG_VERSION" value="false" />
+ <option name="OPTION_DOCUMENT_TAG_DEPRECATED" value="true" />
+ <option name="OPTION_DEPRECATED_LIST" value="true" />
+ <option name="OTHER_OPTIONS" value="" />
+ <option name="HEAP_SIZE" />
+ <option name="LOCALE" />
+ <option name="OPEN_IN_BROWSER" value="true" />
+ </component>
+ <component name="JikesSettings">
+ <option name="JIKES_PATH" value="" />
+ <option name="DEBUGGING_INFO" value="true" />
+ <option name="DEPRECATION" value="true" />
+ <option name="GENERATE_NO_WARNINGS" value="false" />
+ <option name="IS_EMACS_ERRORS_MODE" value="true" />
+ <option name="ADDITIONAL_OPTIONS_STRING" value="" />
+ </component>
+ <component name="Palette2">
+ <group name="Swing">
+ <item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
+ <default-constraints vsize-po...
[truncated message content] |
|
From: <chr...@us...> - 2009-10-05 00:20:57
|
Revision: 1382
http://japi.svn.sourceforge.net/japi/?rev=1382&view=rev
Author: christianhujer
Date: 2009-10-05 00:20:45 +0000 (Mon, 05 Oct 2009)
Log Message:
-----------
Fix some IntelliJ IDEA warnings.
Modified Paths:
--------------
tools/archStat/trunk/src/prj/net/sf/japi/archstat/ArchStat.java
Modified: tools/archStat/trunk/src/prj/net/sf/japi/archstat/ArchStat.java
===================================================================
--- tools/archStat/trunk/src/prj/net/sf/japi/archstat/ArchStat.java 2009-10-05 00:18:29 UTC (rev 1381)
+++ tools/archStat/trunk/src/prj/net/sf/japi/archstat/ArchStat.java 2009-10-05 00:20:45 UTC (rev 1382)
@@ -165,46 +165,46 @@
private static final Pattern SOURCE_LINE_PATTERN = Pattern.compile("^.*\\S.*\\S.*\\S.*$", Pattern.MULTILINE);
/** Returns the number of lines in the specified string.
- * @param string String of which to count lines.
+ * @param text String of which to count lines.
* @return The number of lines in <var>string</var>
*/
- static int countLines(final CharSequence string) {
- return count(LINE_COUNT_PATTERN, string) - 1;
+ static int countLines(final CharSequence text) {
+ return count(LINE_COUNT_PATTERN, text) - 1;
}
/** Returns a split array of lines for the specified string.
- * @param string String to split.
+ * @param text String to split.
* @return Array with lines.
*/
- static String[] getLines(final CharSequence string) {
- return LINE_SPLIT_PATTERN.split(string);
+ static String[] getLines(final CharSequence text) {
+ return LINE_SPLIT_PATTERN.split(text);
}
/** Returns a String that is the input String with all comments removed.
- * @param string String from which to remove the comments.
+ * @param text String from which to remove the comments.
* @return Copy of <var>string</var> with all comments removed.
*/
- static CharSequence removeCComments(final CharSequence string) {
- return COMMENT_PATTERN.matcher(string).replaceAll("");
+ static CharSequence removeCComments(final CharSequence text) {
+ return COMMENT_PATTERN.matcher(text).replaceAll("");
}
/** Returns the number of source lines of <var>string</var>.
- * @param string String of which to count the number of source lines.
+ * @param text String of which to count the number of source lines.
* @return The number of source lines of <var>string</var>.
*/
- static int countSourceLines(final CharSequence string) {
- return count(SOURCE_LINE_PATTERN, string);
+ static int countSourceLines(final CharSequence text) {
+ return count(SOURCE_LINE_PATTERN, text);
}
/** Returns the number of matches of <var>pattern</var> on <var>string</var>.
* @param pattern Pattern of which to count the matches.
- * @param string String in which to count the matches.
+ * @param text String in which to count the matches.
* @return The number of matches of <var>pattern</var> on <var>string</var>.
*/
- private static int count(final Pattern pattern, final CharSequence string) {
+ private static int count(final Pattern pattern, final CharSequence text) {
int count = 0;
- final Matcher m = pattern.matcher(string);
- while (m.find()) {
+ final Matcher matcher = pattern.matcher(text);
+ while (matcher.find()) {
count++;
}
return count;
@@ -214,10 +214,11 @@
* @throws SAXException In case of XML issues when reading the default checkers.
* @throws IOException In case of I/O problems when reading the default checkers.
*/
+ @SuppressWarnings({"HardcodedFileSeparator"})
private void readDefaultCheckers() throws SAXException, IOException {
- final Enumeration<URL> checkers = ArchStat.class.getClassLoader().getResources("net/sf/japi/archstat/Checker.xml");
- while (checkers.hasMoreElements()) {
- final URL url = checkers.nextElement();
+ final Enumeration<URL> checkerURLs = ArchStat.class.getClassLoader().getResources("net/sf/japi/archstat/Checker.xml");
+ while (checkerURLs.hasMoreElements()) {
+ final URL url = checkerURLs.nextElement();
readCheckers(url);
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <chr...@us...> - 2009-09-29 20:41:29
|
Revision: 1380
http://japi.svn.sourceforge.net/japi/?rev=1380&view=rev
Author: christianhujer
Date: 2009-09-29 20:41:21 +0000 (Tue, 29 Sep 2009)
Log Message:
-----------
Do not write the md5sums to a file. SourceForge generates them automatically now.
Instead write them to stdout so the uploading developer can verify them with the generated sums on SourceForge.
Modified Paths:
--------------
common/trunk/commonBuild.xml
Modified: common/trunk/commonBuild.xml
===================================================================
--- common/trunk/commonBuild.xml 2009-09-21 19:51:34 UTC (rev 1379)
+++ common/trunk/commonBuild.xml 2009-09-29 20:41:21 UTC (rev 1380)
@@ -359,7 +359,7 @@
<checksum format="MD5SUM">
<fileset dir="." includes="${distPath}*" />
</checksum>
- <concat destfile="${distPath}.md5sums">
+ <concat>
<fileset dir="." includes="${distPath}*.MD5" />
</concat>
<delete>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <aki...@us...> - 2009-09-21 19:51:40
|
Revision: 1379
http://japi.svn.sourceforge.net/japi/?rev=1379&view=rev
Author: akirschbaum
Date: 2009-09-21 19:51:34 +0000 (Mon, 21 Sep 2009)
Log Message:
-----------
Whitespace changes.
Modified Paths:
--------------
libs/util/trunk/src/tst/test/net/sf/japi/util/filter/file/GlobFileFilterTest.java
Modified: libs/util/trunk/src/tst/test/net/sf/japi/util/filter/file/GlobFileFilterTest.java
===================================================================
--- libs/util/trunk/src/tst/test/net/sf/japi/util/filter/file/GlobFileFilterTest.java 2009-09-21 19:46:51 UTC (rev 1378)
+++ libs/util/trunk/src/tst/test/net/sf/japi/util/filter/file/GlobFileFilterTest.java 2009-09-21 19:51:34 UTC (rev 1379)
@@ -57,7 +57,7 @@
checkCreatePatternForGlob("abc?def", "abcxxdef", false);
final StringBuilder sb = new StringBuilder();
for (int i = 0; i < 256; i++) {
- final char ch = (char)i;
+ final char ch = (char) i;
if (ch != '*' && ch != '?') {
final String s = Character.toString(ch);
checkCreatePatternForGlob(s, s, true);
@@ -77,7 +77,7 @@
*/
private static void checkCreatePatternForGlob(@NotNull final String glob, @NotNull final CharSequence name, final boolean expectedResult) {
final String pattern = GlobFileFilter.createPatternForGlob(glob);
- Assert.assertEquals("glob="+glob+", pattern="+pattern, expectedResult, Pattern.compile(pattern).matcher(name).matches());
+ Assert.assertEquals("glob=" + glob + ", pattern=" + pattern, expectedResult, Pattern.compile(pattern).matcher(name).matches());
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <aki...@us...> - 2009-09-21 19:47:02
|
Revision: 1378
http://japi.svn.sourceforge.net/japi/?rev=1378&view=rev
Author: akirschbaum
Date: 2009-09-21 19:46:51 +0000 (Mon, 21 Sep 2009)
Log Message:
-----------
Fix GlobFileFilter implementation; add unit test.
Modified Paths:
--------------
libs/util/trunk/src/prj/net/sf/japi/util/filter/file/GlobFileFilter.java
Added Paths:
-----------
libs/util/trunk/src/tst/test/net/sf/japi/util/filter/file/GlobFileFilterTest.java
Modified: libs/util/trunk/src/prj/net/sf/japi/util/filter/file/GlobFileFilter.java
===================================================================
--- libs/util/trunk/src/prj/net/sf/japi/util/filter/file/GlobFileFilter.java 2009-09-13 18:11:41 UTC (rev 1377)
+++ libs/util/trunk/src/prj/net/sf/japi/util/filter/file/GlobFileFilter.java 2009-09-21 19:46:51 UTC (rev 1378)
@@ -26,19 +26,11 @@
* </ul>
* @note Currently only matching file names, not directories is possible. Globs with '/' in it are likely to always fail on most operating systems.
* @author <a href="mailto:ch...@ri...">Christian Hujer</a>
+ * @author Andreas Kirschbaum
* @since 0.1
*/
public class GlobFileFilter extends RegexFileFilter {
- /** The regular expressions to perform for turning a glob into a pattern. */
- private static final String[][] REGEXES = {
- {"(\\(|\\.|\\+|\\))", "\\\\$1"}, // escape the characters '(', '.', '+', ')'
- {"\\*", ".*"}, // replace "*" with ".*"
- {"\\?", "."}, // replace "?" with "."
- {"^", "^"}, // prefix with ^
- {"$", "\\$"}, // postfix with $
- };
-
/** Create a GlobFileFilter.
* @param globs Globs to match against.
*/
@@ -65,11 +57,38 @@
* @return regular expression matching the same filename as the shell glob
*/
public static String createPatternForGlob(final String glob) {
- String pattern = glob;
- for (final String[] replaceStep : REGEXES) {
- pattern = pattern.replaceAll(replaceStep[0], replaceStep[1]);
+ final StringBuilder sb = new StringBuilder();
+ boolean quoting = false;
+ final char[] chars = glob.toCharArray();
+ for (int i = 0; i < chars.length; i++) {
+ final char ch = chars[i];
+ if (ch == '*') {
+ if (quoting) {
+ quoting = false;
+ sb.append("\\E");
+ }
+ sb.append(".*");
+ } else if (ch == '?') {
+ if (quoting) {
+ quoting = false;
+ sb.append("\\E");
+ }
+ sb.append(".");
+ } else if (ch == '\\' && i + 1 < chars.length && chars[i + 1] == 'E') {
+ if (quoting) {
+ quoting = false;
+ sb.append("\\E");
+ }
+ sb.append("\\\\");
+ } else {
+ if (!quoting) {
+ quoting = true;
+ sb.append("\\Q");
+ }
+ sb.append(ch);
+ }
}
- return pattern;
+ return sb.toString();
}
} // class GlobFileFilter
Added: libs/util/trunk/src/tst/test/net/sf/japi/util/filter/file/GlobFileFilterTest.java
===================================================================
--- libs/util/trunk/src/tst/test/net/sf/japi/util/filter/file/GlobFileFilterTest.java (rev 0)
+++ libs/util/trunk/src/tst/test/net/sf/japi/util/filter/file/GlobFileFilterTest.java 2009-09-21 19:46:51 UTC (rev 1378)
@@ -0,0 +1,83 @@
+/*
+ * Copyright (C) 2009 Andreas Kirschbaum.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package test.net.sf.japi.util.filter.file;
+
+import java.util.regex.Pattern;
+import net.sf.japi.util.filter.file.GlobFileFilter;
+import org.jetbrains.annotations.NotNull;
+import org.junit.Assert;
+import org.junit.Test;
+
+/** Test for {@link GlobFileFilter}.
+ * @author Andreas Kirschbaum
+ */
+public class GlobFileFilterTest {
+
+ /** Test case for {@link GlobFileFilter#createPatternForGlob(String)}.
+ * @noinspection JUnitTestMethodWithNoAssertions
+ */
+ @Test
+ public void testConcatByte() {
+ checkCreatePatternForGlob("abcd", "abcd", true);
+ checkCreatePatternForGlob("abcd", "abc", false);
+ checkCreatePatternForGlob("abcd", "bcd", false);
+ checkCreatePatternForGlob("a", "abc", false);
+ checkCreatePatternForGlob("b", "abc", false);
+ checkCreatePatternForGlob("c", "abc", false);
+ checkCreatePatternForGlob("^a", "aba", false);
+ checkCreatePatternForGlob("$a", "aba", false);
+ checkCreatePatternForGlob("a^", "aba", false);
+ checkCreatePatternForGlob("a$", "aba", false);
+ checkCreatePatternForGlob("^aba", "^aba", true);
+ checkCreatePatternForGlob("$aba", "$aba", true);
+ checkCreatePatternForGlob("aba^", "aba^", true);
+ checkCreatePatternForGlob("aba$", "aba$", true);
+ checkCreatePatternForGlob("abc*def", "abcef", false);
+ checkCreatePatternForGlob("abc*def", "abcdef", true);
+ checkCreatePatternForGlob("abc*def", "abcxdef", true);
+ checkCreatePatternForGlob("abc*def", "abcagagadef", true);
+ checkCreatePatternForGlob("abc?def", "abcdef", false);
+ checkCreatePatternForGlob("abc?def", "abcxdef", true);
+ checkCreatePatternForGlob("abc?def", "abcxxdef", false);
+ final StringBuilder sb = new StringBuilder();
+ for (int i = 0; i < 256; i++) {
+ final char ch = (char)i;
+ if (ch != '*' && ch != '?') {
+ final String s = Character.toString(ch);
+ checkCreatePatternForGlob(s, s, true);
+ sb.append(ch);
+ }
+ }
+ final String s = sb.toString();
+ checkCreatePatternForGlob(s, s, true);
+ checkCreatePatternForGlob("\\Q*\\E*\\E\\Q", "\\Q\\Eabc\\E\\Q\\E\\Q", true);
+ }
+
+ /**
+ * Calls {@link GlobFileFilter#createPatternForGlob(String)}, matches the given name against it and check for the expected result.
+ * @param glob the pattern to check
+ * @param name the name to match against the pattern
+ * @param expectedResult the expected result
+ */
+ private static void checkCreatePatternForGlob(@NotNull final String glob, @NotNull final CharSequence name, final boolean expectedResult) {
+ final String pattern = GlobFileFilter.createPatternForGlob(glob);
+ Assert.assertEquals("glob="+glob+", pattern="+pattern, expectedResult, Pattern.compile(pattern).matcher(name).matches());
+ }
+
+}
Property changes on: libs/util/trunk/src/tst/test/net/sf/japi/util/filter/file/GlobFileFilterTest.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: svn:eol-style
+ LF
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <chr...@us...> - 2009-09-13 18:11:49
|
Revision: 1377
http://japi.svn.sourceforge.net/japi/?rev=1377&view=rev
Author: christianhujer
Date: 2009-09-13 18:11:41 +0000 (Sun, 13 Sep 2009)
Log Message:
-----------
Fix bug in indices of events.
Modified Paths:
--------------
libs/swing-misc/trunk/src/prj/net/sf/japi/swing/misc/CollectionsListModel.java
Modified: libs/swing-misc/trunk/src/prj/net/sf/japi/swing/misc/CollectionsListModel.java
===================================================================
--- libs/swing-misc/trunk/src/prj/net/sf/japi/swing/misc/CollectionsListModel.java 2009-09-11 19:56:25 UTC (rev 1376)
+++ libs/swing-misc/trunk/src/prj/net/sf/japi/swing/misc/CollectionsListModel.java 2009-09-13 18:11:41 UTC (rev 1377)
@@ -93,8 +93,8 @@
/** {@inheritDoc} */
public boolean add(final E e) {
+ final int size = size();
final boolean changed = list.add(e);
- final int size = size();
if (changed) {
fireIntervalRemoved(this, size, size);
}
@@ -103,10 +103,10 @@
/** {@inheritDoc} */
public boolean remove(final Object o) {
- final int size = size();
+ final int index = list.indexOf(o);
final boolean changed = list.remove(o);
if (changed) {
- fireIntervalRemoved(this, size, size);
+ fireIntervalRemoved(this, index, index);
}
return changed;
}
@@ -121,7 +121,7 @@
final int size = size();
final boolean changed = list.addAll(es);
if (changed) {
- fireIntervalAdded(this, size, size());
+ fireIntervalAdded(this, size, size() - 1);
}
return changed;
}
@@ -160,9 +160,11 @@
/** {@inheritDoc} */
public void clear() {
- final int size = size();
+ final int size = size() - 1;
list.clear();
- fireIntervalRemoved(this, 0, size);
+ if (size >= 0) {
+ fireIntervalRemoved(this, 0, size);
+ }
}
/** {@inheritDoc} */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <chr...@us...> - 2009-09-11 19:56:35
|
Revision: 1376
http://japi.svn.sourceforge.net/japi/?rev=1376&view=rev
Author: christianhujer
Date: 2009-09-11 19:56:25 +0000 (Fri, 11 Sep 2009)
Log Message:
-----------
Update IntelliJ IDEA module file.
Modified Paths:
--------------
libs/registry/trunk/libs-registry.iml
Modified: libs/registry/trunk/libs-registry.iml
===================================================================
--- libs/registry/trunk/libs-registry.iml 2009-09-11 19:53:17 UTC (rev 1375)
+++ libs/registry/trunk/libs-registry.iml 2009-09-11 19:56:25 UTC (rev 1376)
@@ -42,7 +42,7 @@
<option name="lenBefore" value="80" />
<option name="lenAfter" value="80" />
<option name="box" value="false" />
- <option name="filler" value=" " />
+ <option name="filler" value="$TEMPLATE$" />
</value>
</option>
<option name="notice" value="JAPI libs-registry is a library for providing a framework implementation lookup mechanism. Copyright (C) &#36;today.year Christian Hujer. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA" />
@@ -63,7 +63,7 @@
<option name="lenBefore" value="80" />
<option name="lenAfter" value="80" />
<option name="box" value="false" />
- <option name="filler" value=" " />
+ <option name="filler" value="$TEMPLATE$" />
</value>
</option>
<option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." />
@@ -84,7 +84,7 @@
<option name="lenBefore" value="80" />
<option name="lenAfter" value="80" />
<option name="box" value="false" />
- <option name="filler" value=" " />
+ <option name="filler" value="$TEMPLATE$" />
</value>
</option>
<option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." />
@@ -105,7 +105,7 @@
<option name="lenBefore" value="80" />
<option name="lenAfter" value="80" />
<option name="box" value="false" />
- <option name="filler" value=" " />
+ <option name="filler" value="$TEMPLATE$" />
</value>
</option>
<option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." />
@@ -126,7 +126,7 @@
<option name="lenBefore" value="80" />
<option name="lenAfter" value="80" />
<option name="box" value="false" />
- <option name="filler" value=" " />
+ <option name="filler" value="$TEMPLATE$" />
</value>
</option>
<option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." />
@@ -147,7 +147,7 @@
<option name="lenBefore" value="80" />
<option name="lenAfter" value="80" />
<option name="box" value="false" />
- <option name="filler" value=" " />
+ <option name="filler" value="$TEMPLATE$" />
</value>
</option>
<option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." />
@@ -168,7 +168,7 @@
<option name="lenBefore" value="80" />
<option name="lenAfter" value="80" />
<option name="box" value="false" />
- <option name="filler" value=" " />
+ <option name="filler" value="$TEMPLATE$" />
</value>
</option>
<option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." />
@@ -189,7 +189,7 @@
<option name="lenBefore" value="80" />
<option name="lenAfter" value="80" />
<option name="box" value="false" />
- <option name="filler" value=" " />
+ <option name="filler" value="$TEMPLATE$" />
</value>
</option>
<option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." />
@@ -200,6 +200,27 @@
<option name="fileLocation" value="1" />
<option name="useAlternate" value="false" />
</LanguageOptions>
+ <LanguageOptions name="__TEMPLATE__">
+ <option name="templateOptions">
+ <value>
+ <option name="block" value="true" />
+ <option name="separateBefore" value="false" />
+ <option name="separateAfter" value="false" />
+ <option name="prefixLines" value="true" />
+ <option name="lenBefore" value="80" />
+ <option name="lenAfter" value="80" />
+ <option name="box" value="false" />
+ <option name="filler" value="$TEMPLATE$" />
+ </value>
+ </option>
+ <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." />
+ <option name="keyword" value="Copyright" />
+ <option name="fileTypeOverride" value="4" />
+ <option name="relativeBefore" value="true" />
+ <option name="addBlankAfter" value="true" />
+ <option name="fileLocation" value="1" />
+ <option name="useAlternate" value="false" />
+ </LanguageOptions>
</component>
</module>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <chr...@us...> - 2009-09-11 19:53:25
|
Revision: 1375
http://japi.svn.sourceforge.net/japi/?rev=1375&view=rev
Author: christianhujer
Date: 2009-09-11 19:53:17 +0000 (Fri, 11 Sep 2009)
Log Message:
-----------
Make registry compatible with 1.6 and 1.5 at the same time.
Modified Paths:
--------------
libs/registry/trunk/build.xml
libs/registry/trunk/src/prj/net/sf/japi/registry/NamedRegistry.java
Modified: libs/registry/trunk/build.xml
===================================================================
--- libs/registry/trunk/build.xml 2009-07-26 10:41:50 UTC (rev 1374)
+++ libs/registry/trunk/build.xml 2009-09-11 19:53:17 UTC (rev 1375)
@@ -21,6 +21,8 @@
]>
<project name="japi lib registry" default="all">
+ <property name="javaversion" value="1.5" />
+
&commonBuild;
</project>
Modified: libs/registry/trunk/src/prj/net/sf/japi/registry/NamedRegistry.java
===================================================================
--- libs/registry/trunk/src/prj/net/sf/japi/registry/NamedRegistry.java 2009-07-26 10:41:50 UTC (rev 1374)
+++ libs/registry/trunk/src/prj/net/sf/japi/registry/NamedRegistry.java 2009-09-11 19:53:17 UTC (rev 1375)
@@ -22,6 +22,7 @@
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
+import java.util.ServiceLoader;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import sun.misc.Service;
@@ -46,7 +47,7 @@
* @return Implementation or <code>null</code> if none found.
*/
@Nullable public static <T extends NamedService> T getInstance(@NotNull final Class<T> service, @NotNull final String name) {
- for (final Iterator<T> it = Service.providers(service); it.hasNext();) {
+ for (final Iterator<T> it = instanceIterator(service); it.hasNext();) {
final T t = it.next();
if (t.getName().equals(name)) {
return t;
@@ -65,7 +66,7 @@
*/
@NotNull public static <T> Collection<T> getAllInstances(@NotNull final Class<T> service) {
final List<T> instances = new ArrayList<T>();
- for (final Iterator<T> it = Service.providers(service); it.hasNext();) {
+ for (final Iterator<T> it = instanceIterator(service); it.hasNext();) {
instances.add(it.next());
}
return instances;
@@ -79,7 +80,7 @@
* @return Implementation or <code>null</code> if none found.
*/
@Nullable public static <T extends NamedService> T getInstance(@NotNull final Class<T> service, @NotNull final String name, @NotNull final ClassLoader classLoader) {
- for (final Iterator<T> it = Service.providers(service, classLoader); it.hasNext();) {
+ for (final Iterator<T> it = instanceIterator(service, classLoader); it.hasNext();) {
final T t = it.next();
if (t.getName().equals(name)) {
return t;
@@ -98,11 +99,39 @@
* @return List with all implementations, empty collection if none found.
*/
@NotNull public static <T> Collection<T> getAllInstances(@NotNull final Class<T> service, @NotNull final ClassLoader classLoader) {
- final List<T> instances = new ArrayList<T>();
- for (final Iterator<T> it = Service.providers(service, classLoader); it.hasNext();) {
+ final Collection<T> instances = new ArrayList<T>();
+ for (final Iterator<T> it = instanceIterator(service, classLoader); it.hasNext();) {
instances.add(it.next());
}
return instances;
}
-} // class NamedRegistry
+ /**
+ * Returns a Service iterator.
+ * On JDK1.6 and later, the Iterator is created using {@link ServiceLoader}, on earlier platforms it is created using {@link Service}.
+ * @param service Class for which to return a service iterator.
+ * @return Iterator for {@code service}.
+ */
+ @NotNull public static <T> Iterator<T> instanceIterator(@NotNull final Class<T> service) {
+ try {
+ return ServiceLoader.load(service).iterator();
+ } catch (final NoClassDefFoundError e) {
+ return Service.providers(service);
+ }
+ }
+
+ /**
+ * Returns a Service iterator.
+ * On JDK1.6 and later, the Iterator is created using {@link ServiceLoader}, on earlier platforms it is created using {@link Service}.
+ * @param service Class for which to return a service iterator.
+ * @param classLoader ClassLoader to use.
+ * @return Iterator for {@code service}.
+ */
+ @NotNull public static <T> Iterator<T> instanceIterator(@NotNull final Class<T> service, @NotNull final ClassLoader classLoader) {
+ try {
+ return ServiceLoader.load(service, classLoader).iterator();
+ } catch (final NoClassDefFoundError e) {
+ return Service.providers(service, classLoader);
+ }
+ }
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <chr...@us...> - 2009-07-26 10:41:58
|
Revision: 1374
http://japi.svn.sourceforge.net/japi/?rev=1374&view=rev
Author: christianhujer
Date: 2009-07-26 10:41:50 +0000 (Sun, 26 Jul 2009)
Log Message:
-----------
Fix issue with JUnit for PMD.
Modified Paths:
--------------
common/trunk/commonBuild.xml
Modified: common/trunk/commonBuild.xml
===================================================================
--- common/trunk/commonBuild.xml 2009-07-25 14:26:45 UTC (rev 1373)
+++ common/trunk/commonBuild.xml 2009-07-26 10:41:50 UTC (rev 1374)
@@ -542,6 +542,9 @@
<target name="pmd" description="Performs quality checks using PMD." depends="compile,getPmd">
<taskdef name="pmd" classpath="${commonPath}/antlib.auto/pmd-4.2.5.jar" classname="net.sourceforge.pmd.ant.PMDTask"/>
<pmd shortFilenames="true" failOnError="true" failOnRuleViolation="true">
+ <auxclasspath refid="class.path" />
+ <auxclasspath location="${commonPath}/antlib.auto/junit.jar" />
+ <auxclasspath location="classes/production/${module.shortname}" />
<ruleset>${commonPath}/pmd_checks.xml</ruleset>
<formatter type="text" toConsole="true" />
<fileset dir="src/prj">
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <chr...@us...> - 2009-07-25 14:26:54
|
Revision: 1373
http://japi.svn.sourceforge.net/japi/?rev=1373&view=rev
Author: christianhujer
Date: 2009-07-25 14:26:45 +0000 (Sat, 25 Jul 2009)
Log Message:
-----------
Revert previous commit - StringConverter actually was there - through the services.
Modified Paths:
--------------
libs/argparser/trunk/libs-argparser.iml
libs/argparser/trunk/src/doc/guide/start.xhtml
libs/argparser/trunk/src/doc/start.xhtml
libs/argparser/trunk/src/prj/net/sf/japi/io/args/OptionType.java
libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/ConverterRegistry.java
Modified: libs/argparser/trunk/libs-argparser.iml
===================================================================
--- libs/argparser/trunk/libs-argparser.iml 2009-07-25 14:24:07 UTC (rev 1372)
+++ libs/argparser/trunk/libs-argparser.iml 2009-07-25 14:26:45 UTC (rev 1373)
@@ -27,6 +27,15 @@
<SOURCES />
</library>
</orderEntry>
+ <orderEntry type="module-library">
+ <library>
+ <CLASSES>
+ <root url="jar://$MODULE_DIR$/lib/annotations2.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
</component>
<component name="copyright">
<Base>
@@ -42,10 +51,10 @@
<option name="lenBefore" value="80" />
<option name="lenAfter" value="80" />
<option name="box" value="false" />
- <option name="filler" value=" " />
+ <option name="filler" value="$TEMPLATE$" />
</value>
</option>
- <option name="notice" value="JAPI libs-argparser is a library for parsing command line arguments. Copyright (C) &#36;today.year Christian Hujer. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA" />
+ <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." />
<option name="keyword" value="Copyright" />
<option name="fileTypeOverride" value="4" />
<option name="relativeBefore" value="true" />
@@ -63,7 +72,7 @@
<option name="lenBefore" value="80" />
<option name="lenAfter" value="80" />
<option name="box" value="false" />
- <option name="filler" value=" " />
+ <option name="filler" value="$TEMPLATE$" />
</value>
</option>
<option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." />
@@ -84,7 +93,7 @@
<option name="lenBefore" value="80" />
<option name="lenAfter" value="80" />
<option name="box" value="false" />
- <option name="filler" value=" " />
+ <option name="filler" value="$TEMPLATE$" />
</value>
</option>
<option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." />
@@ -105,7 +114,7 @@
<option name="lenBefore" value="80" />
<option name="lenAfter" value="80" />
<option name="box" value="false" />
- <option name="filler" value=" " />
+ <option name="filler" value="$TEMPLATE$" />
</value>
</option>
<option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." />
@@ -126,7 +135,7 @@
<option name="lenBefore" value="80" />
<option name="lenAfter" value="80" />
<option name="box" value="false" />
- <option name="filler" value=" " />
+ <option name="filler" value="$TEMPLATE$" />
</value>
</option>
<option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." />
@@ -147,7 +156,7 @@
<option name="lenBefore" value="80" />
<option name="lenAfter" value="80" />
<option name="box" value="false" />
- <option name="filler" value=" " />
+ <option name="filler" value="$TEMPLATE$" />
</value>
</option>
<option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." />
@@ -168,7 +177,7 @@
<option name="lenBefore" value="80" />
<option name="lenAfter" value="80" />
<option name="box" value="false" />
- <option name="filler" value=" " />
+ <option name="filler" value="$TEMPLATE$" />
</value>
</option>
<option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." />
@@ -189,7 +198,7 @@
<option name="lenBefore" value="80" />
<option name="lenAfter" value="80" />
<option name="box" value="false" />
- <option name="filler" value=" " />
+ <option name="filler" value="$TEMPLATE$" />
</value>
</option>
<option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." />
@@ -200,6 +209,27 @@
<option name="fileLocation" value="1" />
<option name="useAlternate" value="false" />
</LanguageOptions>
+ <LanguageOptions name="__TEMPLATE__">
+ <option name="templateOptions">
+ <value>
+ <option name="block" value="true" />
+ <option name="separateBefore" value="false" />
+ <option name="separateAfter" value="false" />
+ <option name="prefixLines" value="true" />
+ <option name="lenBefore" value="80" />
+ <option name="lenAfter" value="80" />
+ <option name="box" value="false" />
+ <option name="filler" value="$TEMPLATE$" />
+ </value>
+ </option>
+ <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." />
+ <option name="keyword" value="Copyright" />
+ <option name="fileTypeOverride" value="4" />
+ <option name="relativeBefore" value="true" />
+ <option name="addBlankAfter" value="true" />
+ <option name="fileLocation" value="1" />
+ <option name="useAlternate" value="false" />
+ </LanguageOptions>
</component>
</module>
Modified: libs/argparser/trunk/src/doc/guide/start.xhtml
===================================================================
--- libs/argparser/trunk/src/doc/guide/start.xhtml 2009-07-25 14:24:07 UTC (rev 1372)
+++ libs/argparser/trunk/src/doc/guide/start.xhtml 2009-07-25 14:26:45 UTC (rev 1373)
@@ -50,18 +50,20 @@
You create a class that implements the Command interface.
Usually you won't implement that interface directly but extend one of the classes like BasicCommand.
</p>
- <pre>package mycommand;
+ <pre class="java listing">package mycommand;
+import net.sf.japi.io.args.ArgParser;
import net.sf.japi.io.args.BasicCommand;
-public class MyCommand extends BasicCommand {
+public class HelloCommand extends BasicCommand {
public static void main(final String... args) {
- ArgParser.simpleParseAndRun(new MyCommand(), args);
+ // Delegate command line processing to ArgParser.
+ ArgParser.simpleParseAndRun(new HelloCommand(), args);
}
public void run(final List<String> args) {
- // Argument processing (not option processing)
+ System.out.println("Hello, world!");
}
}</pre>
<p>
@@ -78,31 +80,98 @@
<p>
Just invoke your program with --help to see this.
</p>
+ <h2>Processing the remaining arguments</h2>
+ <p>
+ The <code>List<String></code> passed to the <code>run()</code> method contains all remaining non-option command line arguments.
+ Looping over that for further processing is simple:
+ </p>
+ <pre>package mycommand;
+
+import net.sf.japi.io.args.ArgParser;
+import net.sf.japi.io.args.BasicCommand;
+
+public class GreetCommand extends BasicCommand {
+
+ public static void main(final String... args) {
+ ArgParser.simpleParseAndRun(new GreetCommand(), args);
+ }
+
+ public void run(final List<String> args) {
+ if (args.size() == 0) {
+ System.out.println("Hello, world!");
+ } else {
+ for (final String arg : args) {
+ System.out.format("Hello, %s!%n", arg);
+ }
+ }
+ }
+}</pre>
<h2>Adding your own Options</h2>
<p>
Imagine your program can optionally behave recursively.
- You want the option to be <code>-r</code> and <code>--recursive</code>.
+ You want the option to be <code>-r</code> in short form and <code>--recursive</code> in long form.
</p>
<pre>package mycommand;
+import net.sf.japi.io.args.ArgParser;
import net.sf.japi.io.args.BasicCommand;
-public class MyCommand2 extends BasicCommand {
+public class RecursiveCommand extends BasicCommand {
private boolean recursive;
public static void main(final String... args) {
- ArgParser.simpleParseAndRun(new MyCommand(), args);
+ ArgParser.simpleParseAndRun(new RecursiveCommand(), args);
}
+ // This declares an optional option.
+ // The option has one short name: r.
+ // The option has one long name: recursive.
+ // It can be triggered as -r, -recursive, --recursive, -W recursive.
@Option({"r", "recursive"})
public void setRecursive() {
recursive = true;
}
public void run(final List<String> args) {
- // Argument processing (not option processing)
+ if (recursive) {
+ // ...
+ } else {
+ // ...
+ }
}
}</pre>
+ <h2>Adding Options with arguments</h2>
+ <p>
+ Options also can have arguments.
+ For this, the method for the option simply has to declare a parameter.
+ Imagine, your command supports an option named "color" which takes a String as an argument.
+ </p>
+ <pre>package mycommand;
+
+import net.sf.japi.io.args.ArgParser;
+import net.sf.japi.io.args.BasicCommand;
+
+public class ColorCommand extends MyCommand {
+
+ private String color;
+
+ public static void main(final String... args) {
+ ArgParser.simpleParseAndRun(new GreetCommand(), args);
+ }
+
+ @Option({"c", "color"})
+ public void setColor(final String color) {
+ this.color = color;
+ }
+
+ public void run(final List<String> args) {
+ // ...
+ }
+}</pre>
+ <p>
+ The argument of the option method can be of any type for which ArgParser knows a conversion.
+ See the documentation of the class ConverterRegistry for a documentation of default supported types.
+ </p>
</body>
</html>
Modified: libs/argparser/trunk/src/doc/start.xhtml
===================================================================
--- libs/argparser/trunk/src/doc/start.xhtml 2009-07-25 14:24:07 UTC (rev 1372)
+++ libs/argparser/trunk/src/doc/start.xhtml 2009-07-25 14:26:45 UTC (rev 1373)
@@ -27,7 +27,7 @@
<body>
<h1>JAPI Lib Argparser</h1>
<p>
- <em>JAPI Lib Argparser</em> is a library for parsing command line arguments.
+ <em>JAPI Lib Argparser</em> is subproject of JAPI which features a library for parsing command line arguments.
</p>
<h2>Supported features</h2>
<p>
@@ -52,7 +52,7 @@
<li>
Direct Audience: Developers
<ul>
- <li>Makes command line argument parsing easy.</li>
+ <li>Makes Java command line argument parsing easy.</li>
<li>Keeps you from reinventing the wheel, gets the job done for you.</li>
</ul>
</li>
Modified: libs/argparser/trunk/src/prj/net/sf/japi/io/args/OptionType.java
===================================================================
--- libs/argparser/trunk/src/prj/net/sf/japi/io/args/OptionType.java 2009-07-25 14:24:07 UTC (rev 1372)
+++ libs/argparser/trunk/src/prj/net/sf/japi/io/args/OptionType.java 2009-07-25 14:26:45 UTC (rev 1373)
@@ -25,12 +25,31 @@
/**
* The type of an {@link Option}.
+ * It controls the behaviour of an {@link Option} when {@link ArgParser} parses a {@link Command}.
+ * <h4>Usage example</h4>
+ * <pre>
+ * public class MyCommand extends {@link BasicCommand} {
+ * public static void main(final String... args) {
+ * {@link ArgParser}.{@link ArgParser#simpleParseAndRun(Command, String[]) simpleParseAndRun}(new MyCommand(), args);
+ * }
+ * /** {@inheritDoc} */
+ * @Option
+ * public void run(final List<String> args) {
+ * }
+ * }
+ * </pre>
* @author <a href="mailto:ch...@ri...">Christian Hujer</a>
* @since 0.2
*/
public enum OptionType {
/**
+ * Optional options may be omitted.
+ * This is the default and usually doesn't need to be changed.
+ */
+ OPTIONAL,
+
+ /**
* Required options must always be specified prior to command execution.
* Please use required options sparingly - if possible none at all.
* Instead provide your program with reasonable defaults.
@@ -38,12 +57,6 @@
REQUIRED,
/**
- * Optional options may be omitted.
- * This is the default and usually doesn't need to be changed.
- */
- OPTIONAL,
-
- /**
* Terminal options terminate argument parsing, no matter what happens.
* This is only for special options like --help.
* Normally there should be no need for you to declare your own terminal options.
Modified: libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/ConverterRegistry.java
===================================================================
--- libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/ConverterRegistry.java 2009-07-25 14:24:07 UTC (rev 1372)
+++ libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/ConverterRegistry.java 2009-07-25 14:26:45 UTC (rev 1373)
@@ -64,6 +64,7 @@
private static ConverterRegistry createSingletonInstance() {
final ConverterRegistry instance = new ConverterRegistry();
instance.registerDefaultConverters();
+ // Add more from META-INF/services/net.sf.japi.io.args.converter.Converter
for (final Iterator<Converter> converters = ServiceLoader.load(Converter.class).iterator(); converters.hasNext();) {
instance.register(converters.next());
}
@@ -72,7 +73,7 @@
/** Registers the default converters with this ConverterRegistry. */
public void registerDefaultConverters() {
- register(new StringConverter());
+ // To see what's really there, also look at META-INF/services/net.sf.japi.io.args.converter.Converter
register(new BooleanConverter(boolean.class));
register(new BooleanConverter(Boolean.class));
register(new CharConverter(char.class));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <chr...@us...> - 2009-07-25 14:24:29
|
Revision: 1372
http://japi.svn.sourceforge.net/japi/?rev=1372&view=rev
Author: christianhujer
Date: 2009-07-25 14:24:07 +0000 (Sat, 25 Jul 2009)
Log Message:
-----------
Add StringConverter - this was missing. No Problem - String has a constructor which takes a String, but it's a waste of memory.
Modified Paths:
--------------
libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/ConverterRegistry.java
Modified: libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/ConverterRegistry.java
===================================================================
--- libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/ConverterRegistry.java 2009-07-25 14:22:41 UTC (rev 1371)
+++ libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/ConverterRegistry.java 2009-07-25 14:24:07 UTC (rev 1372)
@@ -72,6 +72,7 @@
/** Registers the default converters with this ConverterRegistry. */
public void registerDefaultConverters() {
+ register(new StringConverter());
register(new BooleanConverter(boolean.class));
register(new BooleanConverter(Boolean.class));
register(new CharConverter(char.class));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <chr...@us...> - 2009-07-25 14:22:47
|
Revision: 1371
http://japi.svn.sourceforge.net/japi/?rev=1371&view=rev
Author: christianhujer
Date: 2009-07-25 14:22:41 +0000 (Sat, 25 Jul 2009)
Log Message:
-----------
Improve documentation.
Modified Paths:
--------------
libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/ConverterRegistry.java
Modified: libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/ConverterRegistry.java
===================================================================
--- libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/ConverterRegistry.java 2009-07-25 14:01:34 UTC (rev 1370)
+++ libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/ConverterRegistry.java 2009-07-25 14:22:41 UTC (rev 1371)
@@ -28,6 +28,15 @@
/**
* Registry for Converters.
+ * <p>
+ * Per default, the following are supported:
+ * <ul>
+ * <li>String (this is an identity conversion)</li>
+ * <li>All primitive types (boolean, byte, short, int, long, char, float, double).</li>
+ * <li>All wrapper types for primitives (Boolean, Byte, Short, Integer, Long, Character, Float, Double).</li>
+ * <li>All types which have a public constructor that takes a single String argument.</li>
+ * <li>All Enums.</li>
+ * </ul>
* @author <a href="mailto:ch...@ri...">Christian Hujer</a>
* @since 0.2
*/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <chr...@us...> - 2009-07-25 14:01:43
|
Revision: 1370
http://japi.svn.sourceforge.net/japi/?rev=1370&view=rev
Author: christianhujer
Date: 2009-07-25 14:01:34 +0000 (Sat, 25 Jul 2009)
Log Message:
-----------
Get missing libraries.
Modified Paths:
--------------
libs/taglets/trunk/build.xml
Modified: libs/taglets/trunk/build.xml
===================================================================
--- libs/taglets/trunk/build.xml 2009-07-25 13:38:47 UTC (rev 1369)
+++ libs/taglets/trunk/build.xml 2009-07-25 14:01:34 UTC (rev 1370)
@@ -23,4 +23,11 @@
&commonBuild;
+ <target name="getlibs">
+ <get src="http://www.java2html.de/java2html_50.zip" dest="lib/java2html_50.zip" usetimestamp="true" />
+ <unzip src="lib/java2html_50.zip" dest="lib">
+ <patternset includes="java2html.jar" />
+ </unzip>
+ <delete file="lib/java2html_50.zip" />
+ </target>
</project>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <chr...@us...> - 2009-07-25 13:38:53
|
Revision: 1369
http://japi.svn.sourceforge.net/japi/?rev=1369&view=rev
Author: christianhujer
Date: 2009-07-25 13:38:47 +0000 (Sat, 25 Jul 2009)
Log Message:
-----------
Added TODO.
Modified Paths:
--------------
libs/taglets/trunk/TODO
Modified: libs/taglets/trunk/TODO
===================================================================
--- libs/taglets/trunk/TODO 2009-07-25 13:33:01 UTC (rev 1368)
+++ libs/taglets/trunk/TODO 2009-07-25 13:38:47 UTC (rev 1369)
@@ -1 +1,2 @@
* tools.jar should be auto-referenced for javadoc.
+* Separate lib and lib.auto from each other.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <chr...@us...> - 2009-07-25 13:33:15
|
Revision: 1368
http://japi.svn.sourceforge.net/japi/?rev=1368&view=rev
Author: christianhujer
Date: 2009-07-25 13:33:01 +0000 (Sat, 25 Jul 2009)
Log Message:
-----------
Remove branch 0.2 - it is bogus and the fixes will be made in trunk first.
Removed Paths:
-------------
libs/taglets/branches/0.2/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <chr...@us...> - 2009-07-25 13:27:53
|
Revision: 1367
http://japi.svn.sourceforge.net/japi/?rev=1367&view=rev
Author: christianhujer
Date: 2009-07-25 13:27:45 +0000 (Sat, 25 Jul 2009)
Log Message:
-----------
Created branch 0.2.
Modified Paths:
--------------
libs/taglets/branches/0.2/libs-taglets.iml
Added Paths:
-----------
libs/taglets/branches/0.2/
Property changes on: libs/taglets/branches/0.2
___________________________________________________________________
Added: svn:ignore
+ bin
classes
dest
developer.properties
dist
docs
Added: svn:externals
+ ^/common/trunk@1366 common
Added: svn:mergeinfo
+
Modified: libs/taglets/branches/0.2/libs-taglets.iml
===================================================================
--- libs/taglets/trunk/libs-taglets.iml 2009-07-25 13:24:37 UTC (rev 1366)
+++ libs/taglets/branches/0.2/libs-taglets.iml 2009-07-25 13:27:45 UTC (rev 1367)
@@ -28,12 +28,21 @@
</library>
</orderEntry>
<orderEntry type="library" name="tools" level="application" />
+ <orderEntry type="module-library">
+ <library>
+ <CLASSES>
+ <root url="jar://$MODULE_DIR$/lib/java2html.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
</component>
<component name="copyright">
<Base>
<setting name="state" value="0" />
</Base>
- <LanguageOptions name="$TEMPLATE$">
+ <LanguageOptions name="HTML">
<option name="templateOptions">
<value>
<option name="block" value="true" />
@@ -43,30 +52,9 @@
<option name="lenBefore" value="80" />
<option name="lenAfter" value="80" />
<option name="box" value="false" />
- <option name="filler" value=" " />
+ <option name="filler" value="$TEMPLATE$" />
</value>
</option>
- <option name="notice" value="JAPI libs-taglets is a library that has some useful additional taglets for javadoc. Copyright (C) &#36;today.year Christian Hujer. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA" />
- <option name="keyword" value="Copyright" />
- <option name="fileTypeOverride" value="4" />
- <option name="relativeBefore" value="true" />
- <option name="addBlankAfter" value="true" />
- <option name="fileLocation" value="1" />
- <option name="useAlternate" value="false" />
- </LanguageOptions>
- <LanguageOptions name="CSS">
- <option name="templateOptions">
- <value>
- <option name="block" value="true" />
- <option name="separateBefore" value="false" />
- <option name="separateAfter" value="false" />
- <option name="prefixLines" value="true" />
- <option name="lenBefore" value="80" />
- <option name="lenAfter" value="80" />
- <option name="box" value="false" />
- <option name="filler" value=" " />
- </value>
- </option>
<option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." />
<option name="keyword" value="Copyright" />
<option name="fileTypeOverride" value="2" />
@@ -75,7 +63,7 @@
<option name="fileLocation" value="1" />
<option name="useAlternate" value="false" />
</LanguageOptions>
- <LanguageOptions name="HTML">
+ <LanguageOptions name="JAVA">
<option name="templateOptions">
<value>
<option name="block" value="true" />
@@ -85,7 +73,7 @@
<option name="lenBefore" value="80" />
<option name="lenAfter" value="80" />
<option name="box" value="false" />
- <option name="filler" value=" " />
+ <option name="filler" value="$TEMPLATE$" />
</value>
</option>
<option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." />
@@ -96,7 +84,7 @@
<option name="fileLocation" value="1" />
<option name="useAlternate" value="false" />
</LanguageOptions>
- <LanguageOptions name="JAVA">
+ <LanguageOptions name="JSP">
<option name="templateOptions">
<value>
<option name="block" value="true" />
@@ -106,7 +94,7 @@
<option name="lenBefore" value="80" />
<option name="lenAfter" value="80" />
<option name="box" value="false" />
- <option name="filler" value=" " />
+ <option name="filler" value="$TEMPLATE$" />
</value>
</option>
<option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." />
@@ -117,7 +105,7 @@
<option name="fileLocation" value="1" />
<option name="useAlternate" value="false" />
</LanguageOptions>
- <LanguageOptions name="JSP">
+ <LanguageOptions name="JavaScript">
<option name="templateOptions">
<value>
<option name="block" value="true" />
@@ -127,7 +115,7 @@
<option name="lenBefore" value="80" />
<option name="lenAfter" value="80" />
<option name="box" value="false" />
- <option name="filler" value=" " />
+ <option name="filler" value="$TEMPLATE$" />
</value>
</option>
<option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." />
@@ -138,7 +126,7 @@
<option name="fileLocation" value="1" />
<option name="useAlternate" value="false" />
</LanguageOptions>
- <LanguageOptions name="JavaScript">
+ <LanguageOptions name="Properties">
<option name="templateOptions">
<value>
<option name="block" value="true" />
@@ -148,7 +136,7 @@
<option name="lenBefore" value="80" />
<option name="lenAfter" value="80" />
<option name="box" value="false" />
- <option name="filler" value=" " />
+ <option name="filler" value="$TEMPLATE$" />
</value>
</option>
<option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." />
@@ -159,7 +147,7 @@
<option name="fileLocation" value="1" />
<option name="useAlternate" value="false" />
</LanguageOptions>
- <LanguageOptions name="Properties">
+ <LanguageOptions name="XML">
<option name="templateOptions">
<value>
<option name="block" value="true" />
@@ -169,7 +157,7 @@
<option name="lenBefore" value="80" />
<option name="lenAfter" value="80" />
<option name="box" value="false" />
- <option name="filler" value=" " />
+ <option name="filler" value="$TEMPLATE$" />
</value>
</option>
<option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." />
@@ -180,7 +168,7 @@
<option name="fileLocation" value="1" />
<option name="useAlternate" value="false" />
</LanguageOptions>
- <LanguageOptions name="XML">
+ <LanguageOptions name="__TEMPLATE__">
<option name="templateOptions">
<value>
<option name="block" value="true" />
@@ -190,12 +178,12 @@
<option name="lenBefore" value="80" />
<option name="lenAfter" value="80" />
<option name="box" value="false" />
- <option name="filler" value=" " />
+ <option name="filler" value="$TEMPLATE$" />
</value>
</option>
<option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." />
<option name="keyword" value="Copyright" />
- <option name="fileTypeOverride" value="2" />
+ <option name="fileTypeOverride" value="4" />
<option name="relativeBefore" value="true" />
<option name="addBlankAfter" value="true" />
<option name="fileLocation" value="1" />
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <chr...@us...> - 2009-07-25 13:24:45
|
Revision: 1366
http://japi.svn.sourceforge.net/japi/?rev=1366&view=rev
Author: christianhujer
Date: 2009-07-25 13:24:37 +0000 (Sat, 25 Jul 2009)
Log Message:
-----------
Solved a TODO.
Modified Paths:
--------------
libs/taglets/trunk/TODO
Modified: libs/taglets/trunk/TODO
===================================================================
--- libs/taglets/trunk/TODO 2009-07-25 13:24:01 UTC (rev 1365)
+++ libs/taglets/trunk/TODO 2009-07-25 13:24:37 UTC (rev 1366)
@@ -1,2 +1 @@
-* java2html should be auto-downloaded.
* tools.jar should be auto-referenced for javadoc.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <chr...@us...> - 2009-07-25 13:24:08
|
Revision: 1365
http://japi.svn.sourceforge.net/japi/?rev=1365&view=rev
Author: christianhujer
Date: 2009-07-25 13:24:01 +0000 (Sat, 25 Jul 2009)
Log Message:
-----------
Auto-get java2html.jar if missing.
Modified Paths:
--------------
common/trunk/commonBuild.xml
Modified: common/trunk/commonBuild.xml
===================================================================
--- common/trunk/commonBuild.xml 2009-07-25 13:02:25 UTC (rev 1364)
+++ common/trunk/commonBuild.xml 2009-07-25 13:24:01 UTC (rev 1365)
@@ -85,6 +85,7 @@
</path>
<available property="has3rdparty" file="lib/annotations.jar" />
+<available property="hasJava2html" file="${commonPath}/antlib.auto/java2html.jar" />
<available property="hasAntmeat" file="${commonPath}/antlib.auto/antmeat.jar" />
<available property="hasCheckstyle" file="${commonPath}/antlib.auto/checkstyle-all-4.4.jar" />
<available property="hasJunit" file="${commonPath}/antlib.auto/junit.jar" />
@@ -370,10 +371,17 @@
<get src="http://downloads.sourceforge.net/japi/japi-lib-taglets-0.1.0.jar" dest="${commonPath}/antlib.auto/japi-lib-taglets.jar" usetimestamp="true" />
</target>
+<target name="getJava2html" unless="hasJava2htmL">
+ <get src="http://www.java2html.de/java2html_50.zip" dest="${commonPath}/antlib.auto/java2html_50.zip" usetimestamp="true" />
+ <unzip src="${commonPath}/antlib.auto/java2html_50.zip" dest="${commonPath}/antlib.auto">
+ <patternset includes="java2html.jar" />
+ </unzip>
+</target>
+
<target
name = "doc"
description = "Creates public API documentation"
- depends = "getTaglets"
+ depends = "getTaglets, getJava2html"
>
<mkdir dir="docs/api" />
<javadoc
@@ -423,6 +431,7 @@
<target
name = "privateDoc"
description = "Creates private documentation"
+ depends = "getTaglets, getJava2html"
>
<mkdir dir="docs/private" />
<javadoc
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <chr...@us...> - 2009-07-25 13:02:38
|
Revision: 1364
http://japi.svn.sourceforge.net/japi/?rev=1364&view=rev
Author: christianhujer
Date: 2009-07-25 13:02:25 +0000 (Sat, 25 Jul 2009)
Log Message:
-----------
Add reference to Wikipedia.
Modified Paths:
--------------
libs/taglets/trunk/src/prj/net/sf/japi/taglets/XxxTaglet.java
Modified: libs/taglets/trunk/src/prj/net/sf/japi/taglets/XxxTaglet.java
===================================================================
--- libs/taglets/trunk/src/prj/net/sf/japi/taglets/XxxTaglet.java 2009-07-25 12:55:50 UTC (rev 1363)
+++ libs/taglets/trunk/src/prj/net/sf/japi/taglets/XxxTaglet.java 2009-07-25 13:02:25 UTC (rev 1364)
@@ -23,7 +23,7 @@
/**
* Taglet for entries in an xxx list.
- * An xxx entry denotes code that seems to work and looks bogus or might be a Schroedinbug.
+ * An xxx entry denotes code that seems to work and looks bogus or might be a <a href="http://en.wikipedia.org/wiki/Schroedinbug">Schroedinbug</a>.
*
* @note This tag should only be used if the issue in context is important for the reader of the documentation.
* Internal issues should not be put in javadoc.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <chr...@us...> - 2009-07-25 12:55:56
|
Revision: 1363
http://japi.svn.sourceforge.net/japi/?rev=1363&view=rev
Author: christianhujer
Date: 2009-07-25 12:55:50 +0000 (Sat, 25 Jul 2009)
Log Message:
-----------
Fix bug with double nested lists.
Modified Paths:
--------------
libs/taglets/trunk/src/prj/net/sf/japi/taglets/BlockListTaglet.java
libs/taglets/trunk/src/prj/net/sf/japi/taglets/HistoryTaglet.java
Modified: libs/taglets/trunk/src/prj/net/sf/japi/taglets/BlockListTaglet.java
===================================================================
--- libs/taglets/trunk/src/prj/net/sf/japi/taglets/BlockListTaglet.java 2009-07-25 12:55:32 UTC (rev 1362)
+++ libs/taglets/trunk/src/prj/net/sf/japi/taglets/BlockListTaglet.java 2009-07-25 12:55:50 UTC (rev 1363)
@@ -107,11 +107,11 @@
/** {@inheritDoc} */
public String toString(final Tag tag) {
final StringBuilder sb = new StringBuilder();
- sb.append("<DL><DT><B>");
+ sb.append("<DT><B>");
sb.append(singularTitle);
sb.append("</B></DT><DD><UL><LI>");
sb.append(tag.text());
- sb.append("</LI></UL></DD></DL>");
+ sb.append("</LI></UL></DD>");
return sb.toString();
}
@@ -124,7 +124,7 @@
return toString(tags[0]);
}
final StringBuilder sb = new StringBuilder();
- sb.append("<DL><DT><B>");
+ sb.append("<DT><B>");
sb.append(pluralTitle);
sb.append("</B></DT><DD><UL>");
for (final Tag tag : tags) {
@@ -132,7 +132,7 @@
sb.append(tag.text());
sb.append("</LI>");
}
- sb.append("</UL></DD></DL>");
+ sb.append("</UL></DD>");
return sb.toString();
}
Modified: libs/taglets/trunk/src/prj/net/sf/japi/taglets/HistoryTaglet.java
===================================================================
--- libs/taglets/trunk/src/prj/net/sf/japi/taglets/HistoryTaglet.java 2009-07-25 12:55:32 UTC (rev 1362)
+++ libs/taglets/trunk/src/prj/net/sf/japi/taglets/HistoryTaglet.java 2009-07-25 12:55:50 UTC (rev 1363)
@@ -89,11 +89,11 @@
/** {@inheritDoc} */
public String toString(final Tag tag) {
final StringBuilder sb = new StringBuilder();
- sb.append("<DL><DT><B>");
+ sb.append("<DT><B>");
sb.append("History:");
sb.append("</B></DT><DD><TABLE><TR><TH>Date</TH><TH>Developer(s)</TH><TH>Changes</TH></TR>");
append(sb, tag);
- sb.append("</TABLE></DD></DL>");
+ sb.append("</TABLE></DD>");
return sb.toString();
}
@@ -107,7 +107,7 @@
return toString(tags[0]);
}
final StringBuilder sb = new StringBuilder();
- sb.append("<DL><DT><B>");
+ sb.append("<DT><B>");
sb.append("History:");
sb.append("</B></DT><DD><TABLE><TR><TH>Date</TH><TH>Developer(s)</TH><TH>Changes</TH></TR>");
final Tag[] myTags = tags.clone();
@@ -115,7 +115,7 @@
for (final Tag tag : tags) {
append(sb, tag);
}
- sb.append("</TABLE></DD></DL>");
+ sb.append("</TABLE></DD>");
return sb.toString();
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <chr...@us...> - 2009-07-25 12:55:39
|
Revision: 1362
http://japi.svn.sourceforge.net/japi/?rev=1362&view=rev
Author: christianhujer
Date: 2009-07-25 12:55:32 +0000 (Sat, 25 Jul 2009)
Log Message:
-----------
Add reference to TODO syntax specification.
Modified Paths:
--------------
libs/taglets/trunk/src/prj/net/sf/japi/taglets/FixmeTaglet.java
libs/taglets/trunk/src/prj/net/sf/japi/taglets/TodoTaglet.java
libs/taglets/trunk/src/prj/net/sf/japi/taglets/XxxTaglet.java
Modified: libs/taglets/trunk/src/prj/net/sf/japi/taglets/FixmeTaglet.java
===================================================================
--- libs/taglets/trunk/src/prj/net/sf/japi/taglets/FixmeTaglet.java 2009-07-25 12:40:30 UTC (rev 1361)
+++ libs/taglets/trunk/src/prj/net/sf/japi/taglets/FixmeTaglet.java 2009-07-25 12:55:32 UTC (rev 1362)
@@ -24,10 +24,15 @@
/**
* Taglet for entries in a fixme list.
* A fixme entry denotes code that is known to be bogus and needs fixing.
+ *
+ * @note This tag should only be used if the issue in context is important for the reader of the documentation.
+ * Internal issues should not be put in javadoc.
+ *
* @author <a href="mailto:ch...@ri...">Christian Hujer</a>
* @since 0.1
* @see TodoTaglet for general work that needs to be done
* @see XxxTaglet for code that looks bogus but seems to work
+ * @see <a href="http://www.riedquat.de/TR/TODO_Syntax">TODO Syntax Specification</a>
*/
public final class FixmeTaglet extends BlockListTaglet {
Modified: libs/taglets/trunk/src/prj/net/sf/japi/taglets/TodoTaglet.java
===================================================================
--- libs/taglets/trunk/src/prj/net/sf/japi/taglets/TodoTaglet.java 2009-07-25 12:40:30 UTC (rev 1361)
+++ libs/taglets/trunk/src/prj/net/sf/japi/taglets/TodoTaglet.java 2009-07-25 12:55:32 UTC (rev 1362)
@@ -26,10 +26,15 @@
* A todo entry states a missing or unimplemented feature or other work that needs to be done as soon as sombody has time for it.
* Todo entries shouldn't be used for code that is known to be or at least looks like being erraneous.
* For these situations, use either {@link XxxTaglet @xxx} or {@link FixmeTaglet @fixme}.
+ *
+ * @note This tag should only be used if the issue in context is important for the reader of the documentation.
+ * Internal issues should not be put in javadoc.
+ *
* @author <a href="mailto:ch...@ri...">Christian Hujer</a>
* @since 0.1
* @see XxxTaglet for code that looks bogus but seems to work
* @see FixmeTaglet for code that is known to be bogus
+ * @see <a href="http://www.riedquat.de/TR/TODO_Syntax">TODO Syntax Specification</a>
*/
public final class TodoTaglet extends BlockListTaglet {
Modified: libs/taglets/trunk/src/prj/net/sf/japi/taglets/XxxTaglet.java
===================================================================
--- libs/taglets/trunk/src/prj/net/sf/japi/taglets/XxxTaglet.java 2009-07-25 12:40:30 UTC (rev 1361)
+++ libs/taglets/trunk/src/prj/net/sf/japi/taglets/XxxTaglet.java 2009-07-25 12:55:32 UTC (rev 1362)
@@ -24,10 +24,15 @@
/**
* Taglet for entries in an xxx list.
* An xxx entry denotes code that seems to work and looks bogus or might be a Schroedinbug.
+ *
+ * @note This tag should only be used if the issue in context is important for the reader of the documentation.
+ * Internal issues should not be put in javadoc.
+ *
* @author <a href="mailto:ch...@ri...">Christian Hujer</a>
* @since 0.1
* @see TodoTaglet for general work that needs to be done
* @see FixmeTaglet for code that is known to be bogus
+ * @see <a href="http://www.riedquat.de/TR/TODO_Syntax">TODO Syntax Specification</a>
*/
public final class XxxTaglet extends BlockListTaglet {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <chr...@us...> - 2009-07-25 12:40:37
|
Revision: 1361
http://japi.svn.sourceforge.net/japi/?rev=1361&view=rev
Author: christianhujer
Date: 2009-07-25 12:40:30 +0000 (Sat, 25 Jul 2009)
Log Message:
-----------
Change common build to include {@include} and {@listing} taglets.
Note: This will temporarily result in recoverable javadoc errors until the new taglets jar is published.
Modified Paths:
--------------
common/trunk/commonBuild.xml
Modified: common/trunk/commonBuild.xml
===================================================================
--- common/trunk/commonBuild.xml 2009-07-25 12:39:50 UTC (rev 1360)
+++ common/trunk/commonBuild.xml 2009-07-25 12:40:30 UTC (rev 1361)
@@ -415,6 +415,8 @@
<taglet name="net.sf.japi.taglets.TodoTaglet" path="${commonPath}/antlib.auto/japi-lib-taglets.jar" />
<taglet name="net.sf.japi.taglets.WarningTaglet" path="${commonPath}/antlib.auto/japi-lib-taglets.jar" />
<taglet name="net.sf.japi.taglets.XxxTaglet" path="${commonPath}/antlib.auto/japi-lib-taglets.jar" />
+ <taglet name="net.sf.japi.taglets.IncludeTaglet" path="${commonPath}/antlib.auto/japi-lib-taglets.jar;${commonPath}/antlib.auto/java2html.jar" />
+ <taglet name="net.sf.japi.taglets.ListingTaglet" path="${commonPath}/antlib.auto/japi-lib-taglets.jar;${commonPath}/antlib.auto/java2html.jar" />
</javadoc>
</target>
@@ -462,6 +464,8 @@
<taglet name="net.sf.japi.taglets.TodoTaglet" path="${commonPath}/antlib.auto/japi-lib-taglets.jar" />
<taglet name="net.sf.japi.taglets.WarningTaglet" path="${commonPath}/antlib.auto/japi-lib-taglets.jar" />
<taglet name="net.sf.japi.taglets.XxxTaglet" path="${commonPath}/antlib.auto/japi-lib-taglets.jar" />
+ <taglet name="net.sf.japi.taglets.IncludeTaglet" path="${commonPath}/antlib.auto/japi-lib-taglets.jar;${commonPath}/antlib.auto/java2html.jar" />
+ <taglet name="net.sf.japi.taglets.ListingTaglet" path="${commonPath}/antlib.auto/japi-lib-taglets.jar;${commonPath}/antlib.auto/java2html.jar" />
</javadoc>
</target>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|