Commit 5ea2154b authored by andrei's avatar andrei

Tuned FB settings

parent 20244dba
#FindBugs User Preferences
#Mon Sep 15 21:35:42 CEST 2008
#Tue Dec 30 19:42:11 CET 2008
detectorAppendingToAnObjectOutputStream=AppendingToAnObjectOutputStream|true
detectorBCPMethodReturnCheck=BCPMethodReturnCheck|false
detectorBadAppletConstructor=BadAppletConstructor|false
......@@ -20,7 +20,7 @@ detectorCloneIdiom=CloneIdiom|true
detectorComparatorIdiom=ComparatorIdiom|false
detectorConfusedInheritance=ConfusedInheritance|true
detectorConfusionBetweenInheritedAndOuterMethod=ConfusionBetweenInheritedAndOuterMethod|true
detectorCrossSiteScripting=CrossSiteScripting|true
detectorCrossSiteScripting=CrossSiteScripting|false
detectorDoInsideDoPrivileged=DoInsideDoPrivileged|true
detectorDontCatchIllegalMonitorStateException=DontCatchIllegalMonitorStateException|true
detectorDontUseEnum=DontUseEnum|true
......@@ -30,6 +30,7 @@ detectorDumbMethods=DumbMethods|true
detectorDuplicateBranches=DuplicateBranches|true
detectorEmptyZipFileEntry=EmptyZipFileEntry|true
detectorEqStringTest=EqStringTest|false
detectorEqualsOperandShouldHaveClassCompatibleWithThis=EqualsOperandShouldHaveClassCompatibleWithThis|true
detectorFieldItemSummary=FieldItemSummary|true
detectorFinalizerNullsFields=FinalizerNullsFields|true
detectorFindBadCast=FindBadCast|false
......@@ -52,7 +53,7 @@ detectorFindLocalSelfAssignment2=FindLocalSelfAssignment2|true
detectorFindMaskedFields=FindMaskedFields|true
detectorFindMismatchedWaitOrNotify=FindMismatchedWaitOrNotify|true
detectorFindNakedNotify=FindNakedNotify|true
detectorFindNonSerializableStoreIntoSession=FindNonSerializableStoreIntoSession|true
detectorFindNonSerializableStoreIntoSession=FindNonSerializableStoreIntoSession|false
detectorFindNonSerializableValuePassedToWriteObject=FindNonSerializableValuePassedToWriteObject|true
detectorFindNonShortCircuit=FindNonShortCircuit|true
detectorFindNullDeref=FindNullDeref|true
......@@ -120,7 +121,7 @@ detectorReflectiveClasses=ReflectiveClasses|true
detectorRepeatedConditionals=RepeatedConditionals|true
detectorResolveAllReferences=ResolveAllReferences|false
detectorRuntimeExceptionCapture=RuntimeExceptionCapture|true
detectorSerializableIdiom=SerializableIdiom|true
detectorSerializableIdiom=SerializableIdiom|false
detectorStartInConstructor=StartInConstructor|true
detectorStaticCalendarDetector=StaticCalendarDetector|true
detectorStringConcatenation=StringConcatenation|true
......@@ -150,6 +151,7 @@ detectorWrongMapIterator=WrongMapIterator|true
detectorXMLFactoryBypass=XMLFactoryBypass|true
detector_threshold=2
effort=max
filter_settings=Medium|BAD_PRACTICE,CORRECTNESS,I18N,MALICIOUS_CODE,MT_CORRECTNESS,PERFORMANCE,SECURITY,STYLE|false
excludefilter0=findbugsExclude.xml
filter_settings=Medium|BAD_PRACTICE,CORRECTNESS,EXPERIMENTAL,I18N,MALICIOUS_CODE,MT_CORRECTNESS,PERFORMANCE,SECURITY,STYLE|false
filter_settings_neg=|
run_at_full_build=false
<?xml version="1.0" encoding="UTF-8"?>
<FindBugsFilter>
<Match>
<Bug pattern="DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED"/>
</Match>
<Match>
<Bug category="MALICIOUS_CODE"/>
</Match>
<Match>
<BugCode name="Se"/>
</Match>
<Match>
<Package name="inner.*"/>
</Match>
<Match>
<Class name="Test*"/>
</Match>
</FindBugsFilter>
......@@ -48,7 +48,7 @@ import org.eclipse.ui.PlatformUI;
public abstract class TestJdtUtils extends TestCase {
private final boolean onlyPrintOutError = false;
private static final boolean onlyPrintOutError = false;
private static String EXTERNAL_JAR_DIR_PATH;
private IWorkspace workspace;
private IWorkspaceRoot root;
......@@ -490,7 +490,10 @@ public abstract class TestJdtUtils extends TestCase {
*/
protected void copyDirectory(File source, File target) throws IOException {
if (!target.exists()) {
target.mkdirs();
boolean result = target.mkdirs();
if(!result){
throw new IOException("Can't create directory: " + target);
}
}
File[] files = source.listFiles();
if (files == null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment