File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
module/tools/src/test/java/com/xenoterracide/blackbox Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1- // SPDX-FileCopyrightText: Copyright © 2024 Caleb Cushing
1+ // SPDX-FileCopyrightText: Copyright © 2024, 2026 Caleb Cushing
22//
33// SPDX-License-Identifier: Apache-2.0
44
1111import io .vavr .control .Try ;
1212import java .io .IOException ;
1313import java .io .UncheckedIOException ;
14- import org .assertj .core .api .Assertions ;
1514import org .junit .jupiter .api .Test ;
1615
1716class ExceptionToolsTest {
1817
1918 @ Test
2019 void convertRuntimeExceptionsAreJustRethrown () {
21- Assertions . assertThat (ExceptionTools .toRuntime (new NullPointerException ()))
20+ assertThat (ExceptionTools .toRuntime (new NullPointerException ()))
2221 .isInstanceOf (NullPointerException .class )
2322 .hasNoCause ();
2423 }
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ SPDX-License-Identifier: CC0-1.0
109109 <arg >-XDcompilePolicy=simple</arg >
110110 <arg >-XDaddTypeAnnotationsToSymbol=true</arg >
111111 <!-- prettier-ignore-start -->
112- <arg>-Xplugin:ErrorProne -XepOpt:NullAway:JSpecifyMode=true -XepDisableWarningsInGeneratedCode -XepExcludedPaths:.*/target/generated-sources/.* -Xep:InvalidInlineTag:OFF -Xep:MultipleNullnessAnnotations:OFF -Xep:AddNullMarkedToPackageInfo:ERROR -Xep:AmbiguousMethodReference:ERROR -Xep:ArgumentSelectionDefectChecker:ERROR -Xep:ArrayAsKeyOfSetOrMap:ERROR -Xep:AssertEqualsArgumentOrderChecker:ERROR -Xep:AssertFalse:ERROR -Xep:AssertThrowsMultipleStatements:ERROR -Xep:AssertionFailureIgnored:ERROR -Xep:BadComparable:ERROR -Xep:BadImport:ERROR -Xep:BadInstanceof:ERROR -Xep:BigDecimalEquals:ERROR -Xep:BigDecimalLiteralDouble:ERROR -Xep:ByteBufferBackingArray:ERROR -Xep:CacheLoaderNull:ERROR -Xep:CannotMockFinalClass:ERROR -Xep:CanonicalDuration:ERROR -Xep:CatchAndPrintStackTrace:ERROR -Xep:CatchFail:ERROR -Xep:CheckedExceptionNotThrown:ERROR -Xep:ClassCanBeStatic:ERROR -Xep:ClassName:ERROR -Xep:ClassNamedLikeTypeParameter:ERROR -Xep:ClassNewInstance:ERROR -Xep:CollectionUndefinedEquality:ERROR -Xep:CollectorShouldNotUseState:ERROR -Xep:ComparableAndComparator:ERROR -Xep:CompareToZero:ERROR -Xep:ComparisonContractViolated:ERROR -Xep:ComplexBooleanConstant:ERROR -Xep:ConstantField:ERROR -Xep:DateFormatConstant:ERROR -Xep:DeduplicateConstants:ERROR -Xep:DefaultCharset:ERROR -Xep:DefaultPackage:ERROR -Xep:DoubleCheckedLocking:ERROR -Xep:EmptyCatch:ERROR -Xep:EmptyIf:ERROR -Xep:EmptyTopLevelDeclaration:ERROR -Xep:EqualsBrokenForNull:ERROR -Xep:EqualsGetClass:ERROR -Xep:EqualsIncompatibleType:ERROR -Xep:EqualsUnsafeCast:ERROR -Xep:EqualsUsingHashCode:ERROR -Xep:ExpectedExceptionChecker:ERROR -Xep:ExtendingJUnitAssert:ERROR -Xep:FallThrough:ERROR -Xep:FieldCanBeLocal:ERROR -Xep:FieldCanBeStatic:ERROR -Xep:Finally:ERROR -Xep:FloatCast:ERROR -Xep:FloatingPointLiteralPrecision:ERROR -Xep:ForEachIterable:ERROR -Xep:FutureReturnValueIgnored:ERROR -Xep:FuzzyEqualsShouldNotBeUsedInEqualsMethod:ERROR -Xep:GetClassOnEnum:ERROR -Xep:HidingField:ERROR -Xep:ImmutableAnnotationChecker:ERROR -Xep:ImmutableEnumChecker:ERROR -Xep:InconsistentCapitalization:ERROR -Xep:InconsistentHashCode:ERROR -Xep:InconsistentOverloads:ERROR -Xep:IncrementInForLoopAndHeader:ERROR -Xep:InlineFormatString:ERROR -Xep:InputStreamSlowMultibyteRead:ERROR -Xep:InstanceOfAndCastMatchWrongType:ERROR -Xep:InterfaceWithOnlyStatics:ERROR -Xep:InterruptedExceptionSwallowed:ERROR -Xep:InvalidThrows:ERROR -Xep:IterableAndIterator:ERROR -Xep:IterablePathParameter:ERROR -Xep:JavaDurationGetSecondsGetNano:ERROR -Xep:JavaDurationWithNanos:ERROR -Xep:JavaDurationWithSeconds:ERROR -Xep:JavaInstantGetSecondsGetNano:ERROR -Xep:JavaLangClash:ERROR -Xep:JavaLocalDateTimeGetNano:ERROR -Xep:JavaLocalTimeGetNano:ERROR -Xep:JavaTimeDefaultTimeZone:ERROR -Xep:LockNotBeforeTry:ERROR -Xep:LockOnBoxedPrimitive:ERROR -Xep:LogicalAssignment:ERROR -Xep:LongLiteralLowerCaseSuffix:ERROR -Xep:MethodCanBeStatic:ERROR -Xep:MissingCasesInEnumSwitch:ERROR -Xep:MissingOverride:ERROR -Xep:MixedMutabilityReturnType:ERROR -Xep:ModifiedButNotUsed:ERROR -Xep:ModifyCollectionInEnhancedForLoop:ERROR -Xep:ModifySourceCollectionInStream:ERROR -Xep:MultiVariableDeclaration:ERROR -Xep:MultipleParallelOrSequentialCalls:ERROR -Xep:MultipleTopLevelClasses:ERROR -Xep:MultipleUnaryOperatorsInMethodCall:ERROR -Xep:MutableConstantField:ERROR -Xep:MutablePublicArray:ERROR -Xep:NestedInstanceOfConditions:ERROR -Xep:NonAtomicVolatileUpdate:ERROR -Xep:NonCanonicalStaticMemberImport:ERROR -Xep:NonOverridingEquals:ERROR -Xep:NullAway:ERROR -Xep:NullOptional:ERROR -Xep:NullableConstructor:ERROR -Xep:NullablePrimitive:ERROR -Xep:NullableVoid:ERROR -Xep:NumericEquality:ERROR -Xep:ObjectToString:ERROR -Xep:ObjectsHashCodePrimitive:ERROR -Xep:OperatorPrecedence:ERROR -Xep:OptionalMapToOptional:ERROR -Xep:OrphanedFormatString:ERROR -Xep:Overrides:ERROR -Xep:OverrideThrowableToString:ERROR -Xep:PackageLocation:ERROR -Xep:PreconditionsCheckNotNullRepeated:ERROR -Xep:PreferJavaTimeOverload:ERROR -Xep:PrimitiveAtomicReference:ERROR -Xep:ProtectedMembersInFinalClass:ERROR -Xep:ReferenceEquality:ERROR -Xep:RemoveUnusedImports:ERROR -Xep:ReturnFromVoid:ERROR -Xep:RxReturnValueIgnored:ERROR -Xep:SameNameButDifferent:ERROR -Xep:ShortCircuitBoolean:ERROR -Xep:StaticAssignmentInConstructor:ERROR -Xep:StaticGuardedByInstance:ERROR -Xep:StaticQualifiedUsingExpression:ERROR -Xep:StreamResourceLeak:ERROR -Xep:StringSplitter:ERROR -Xep:SynchronizeOnNonFinalField:ERROR -Xep:ThreadJoinLoop:ERROR -Xep:ThreadLocalUsage:ERROR -Xep:ThreeLetterTimeZoneID:ERROR -Xep:TimeUnitConversionChecker:ERROR -Xep:ToStringReturnsNull:ERROR -Xep:TreeToString:ERROR -Xep:TypeEquals:ERROR -Xep:TypeNameShadowing:ERROR -Xep:TypeParameterShadowing:ERROR -Xep:TypeParameterUnusedInFormals:ERROR -Xep:URLEqualsHashCode:ERROR -Xep:UndefinedEquals:ERROR -Xep:UnnecessaryAnonymousClass:ERROR -Xep:UnnecessaryLambda:ERROR -Xep:UnnecessaryMethodInvocationMatcher:ERROR -Xep:UnnecessaryParentheses:ERROR -Xep:UnsafeFinalization:ERROR -Xep:UnsafeReflectiveConstructionCast:ERROR -Xep:UnusedMethod:ERROR -Xep:UnusedNestedClass:ERROR -Xep:UnusedVariable:ERROR -Xep:UseCorrectAssertInTests:ERROR -Xep:Var:ERROR -Xep:VariableNameSameAsType:ERROR -Xep:WaitNotInLoop:ERROR -Xep:WildcardImport:ERROR</arg>
112+ <arg>-Xplugin:ErrorProne -XepOpt:NullAway:JSpecifyMode=true -XepOpt:NullAway:OnlyNullMarked=true XepOpt:NullAway:CheckOptionalEmptiness=true -XepOpt:NullAway:AcknowledgeRestrictiveAnnotations=true -XepDisableWarningsInGeneratedCode -XepExcludedPaths:.*/target/generated-sources/.* -Xep:InvalidInlineTag:OFF -Xep:MultipleNullnessAnnotations:OFF -Xep:AddNullMarkedToPackageInfo:ERROR -Xep:AmbiguousMethodReference:ERROR -Xep:ArgumentSelectionDefectChecker:ERROR -Xep:ArrayAsKeyOfSetOrMap:ERROR -Xep:AssertEqualsArgumentOrderChecker:ERROR -Xep:AssertFalse:ERROR -Xep:AssertThrowsMultipleStatements:ERROR -Xep:AssertionFailureIgnored:ERROR -Xep:BadComparable:ERROR -Xep:BadImport:ERROR -Xep:BadInstanceof:ERROR -Xep:BigDecimalEquals:ERROR -Xep:BigDecimalLiteralDouble:ERROR -Xep:ByteBufferBackingArray:ERROR -Xep:CacheLoaderNull:ERROR -Xep:CannotMockFinalClass:ERROR -Xep:CanonicalDuration:ERROR -Xep:CatchAndPrintStackTrace:ERROR -Xep:CatchFail:ERROR -Xep:CheckedExceptionNotThrown:ERROR -Xep:ClassCanBeStatic:ERROR -Xep:ClassName:ERROR -Xep:ClassNamedLikeTypeParameter:ERROR -Xep:ClassNewInstance:ERROR -Xep:CollectionUndefinedEquality:ERROR -Xep:CollectorShouldNotUseState:ERROR -Xep:ComparableAndComparator:ERROR -Xep:CompareToZero:ERROR -Xep:ComparisonContractViolated:ERROR -Xep:ComplexBooleanConstant:ERROR -Xep:ConstantField:ERROR -Xep:DateFormatConstant:ERROR -Xep:DeduplicateConstants:ERROR -Xep:DefaultCharset:ERROR -Xep:DefaultPackage:ERROR -Xep:DoubleCheckedLocking:ERROR -Xep:EmptyCatch:ERROR -Xep:EmptyIf:ERROR -Xep:EmptyTopLevelDeclaration:ERROR -Xep:EqualsBrokenForNull:ERROR -Xep:EqualsGetClass:ERROR -Xep:EqualsIncompatibleType:ERROR -Xep:EqualsUnsafeCast:ERROR -Xep:EqualsUsingHashCode:ERROR -Xep:ExpectedExceptionChecker:ERROR -Xep:ExtendingJUnitAssert:ERROR -Xep:FallThrough:ERROR -Xep:FieldCanBeLocal:ERROR -Xep:FieldCanBeStatic:ERROR -Xep:Finally:ERROR -Xep:FloatCast:ERROR -Xep:FloatingPointLiteralPrecision:ERROR -Xep:ForEachIterable:ERROR -Xep:FutureReturnValueIgnored:ERROR -Xep:FuzzyEqualsShouldNotBeUsedInEqualsMethod:ERROR -Xep:GetClassOnEnum:ERROR -Xep:HidingField:ERROR -Xep:ImmutableAnnotationChecker:ERROR -Xep:ImmutableEnumChecker:ERROR -Xep:InconsistentCapitalization:ERROR -Xep:InconsistentHashCode:ERROR -Xep:InconsistentOverloads:ERROR -Xep:IncrementInForLoopAndHeader:ERROR -Xep:InlineFormatString:ERROR -Xep:InputStreamSlowMultibyteRead:ERROR -Xep:InstanceOfAndCastMatchWrongType:ERROR -Xep:InterfaceWithOnlyStatics:ERROR -Xep:InterruptedExceptionSwallowed:ERROR -Xep:InvalidThrows:ERROR -Xep:IterableAndIterator:ERROR -Xep:IterablePathParameter:ERROR -Xep:JavaDurationGetSecondsGetNano:ERROR -Xep:JavaDurationWithNanos:ERROR -Xep:JavaDurationWithSeconds:ERROR -Xep:JavaInstantGetSecondsGetNano:ERROR -Xep:JavaLangClash:ERROR -Xep:JavaLocalDateTimeGetNano:ERROR -Xep:JavaLocalTimeGetNano:ERROR -Xep:JavaTimeDefaultTimeZone:ERROR -Xep:LockNotBeforeTry:ERROR -Xep:LockOnBoxedPrimitive:ERROR -Xep:LogicalAssignment:ERROR -Xep:LongLiteralLowerCaseSuffix:ERROR -Xep:MethodCanBeStatic:ERROR -Xep:MissingCasesInEnumSwitch:ERROR -Xep:MissingOverride:ERROR -Xep:MixedMutabilityReturnType:ERROR -Xep:ModifiedButNotUsed:ERROR -Xep:ModifyCollectionInEnhancedForLoop:ERROR -Xep:ModifySourceCollectionInStream:ERROR -Xep:MultiVariableDeclaration:ERROR -Xep:MultipleParallelOrSequentialCalls:ERROR -Xep:MultipleTopLevelClasses:ERROR -Xep:MultipleUnaryOperatorsInMethodCall:ERROR -Xep:MutableConstantField:ERROR -Xep:MutablePublicArray:ERROR -Xep:NestedInstanceOfConditions:ERROR -Xep:NonAtomicVolatileUpdate:ERROR -Xep:NonCanonicalStaticMemberImport:ERROR -Xep:NonOverridingEquals:ERROR -Xep:NullAway:ERROR -Xep:NullOptional:ERROR -Xep:NullableConstructor:ERROR -Xep:NullablePrimitive:ERROR -Xep:NullableVoid:ERROR -Xep:NumericEquality:ERROR -Xep:ObjectToString:ERROR -Xep:ObjectsHashCodePrimitive:ERROR -Xep:OperatorPrecedence:ERROR -Xep:OptionalMapToOptional:ERROR -Xep:OrphanedFormatString:ERROR -Xep:Overrides:ERROR -Xep:OverrideThrowableToString:ERROR -Xep:PackageLocation:ERROR -Xep:PreconditionsCheckNotNullRepeated:ERROR -Xep:PreferJavaTimeOverload:ERROR -Xep:PrimitiveAtomicReference:ERROR -Xep:ProtectedMembersInFinalClass:ERROR -Xep:ReferenceEquality:ERROR -Xep:RemoveUnusedImports:ERROR -Xep:ReturnFromVoid:ERROR -Xep:RxReturnValueIgnored:ERROR -Xep:SameNameButDifferent:ERROR -Xep:ShortCircuitBoolean:ERROR -Xep:StaticAssignmentInConstructor:ERROR -Xep:StaticGuardedByInstance:ERROR -Xep:StaticQualifiedUsingExpression:ERROR -Xep:StreamResourceLeak:ERROR -Xep:StringSplitter:ERROR -Xep:SynchronizeOnNonFinalField:ERROR -Xep:ThreadJoinLoop:ERROR -Xep:ThreadLocalUsage:ERROR -Xep:ThreeLetterTimeZoneID:ERROR -Xep:TimeUnitConversionChecker:ERROR -Xep:ToStringReturnsNull:ERROR -Xep:TreeToString:ERROR -Xep:TypeEquals:ERROR -Xep:TypeNameShadowing:ERROR -Xep:TypeParameterShadowing:ERROR -Xep:TypeParameterUnusedInFormals:ERROR -Xep:URLEqualsHashCode:ERROR -Xep:UndefinedEquals:ERROR -Xep:UnnecessaryAnonymousClass:ERROR -Xep:UnnecessaryLambda:ERROR -Xep:UnnecessaryMethodInvocationMatcher:ERROR -Xep:UnnecessaryParentheses:ERROR -Xep:UnsafeFinalization:ERROR -Xep:UnsafeReflectiveConstructionCast:ERROR -Xep:UnusedMethod:ERROR -Xep:UnusedNestedClass:ERROR -Xep:UnusedVariable:ERROR -Xep:UseCorrectAssertInTests:ERROR -Xep:Var:ERROR -Xep:VariableNameSameAsType:ERROR -Xep:WaitNotInLoop:ERROR -Xep:WildcardImport:ERROR</arg>
113113 <!-- prettier-ignore-end -->
114114 </compilerArgs >
115115 </configuration >
You can’t perform that action at this time.
0 commit comments