mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Avoid new zero-tolerance warnings
GitOrigin-RevId: 200f984e583ab8e18eb16d57954843d9dfca1c52
This commit is contained in:
committed by
intellij-monorepo-bot
parent
28c0fa66b8
commit
d87f515faa
@@ -35,7 +35,8 @@ public class FacetPointersManagerTest extends FacetTestCase {
|
||||
assertNull(pointer.getFacet());
|
||||
assertEquals(myModule.getName(), pointer.getModuleName());
|
||||
assertEquals("myFacet", pointer.getFacetName());
|
||||
assertSame(MockFacetType.getInstance(), pointer.getFacetType());
|
||||
FacetType<?, ?> expected = MockFacetType.getInstance();
|
||||
assertSame(expected, pointer.getFacetType());
|
||||
|
||||
final MockFacet mockFacet = addFacet("myFacet");
|
||||
assertRefersTo(pointer, mockFacet);
|
||||
|
||||
+8
-7
@@ -6,6 +6,7 @@ import com.intellij.testFramework.LightProjectDescriptor;
|
||||
import com.siyeh.ig.LightJavaInspectionTestCase;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@SuppressWarnings("BigDecimalMethodWithoutRoundingCalled")
|
||||
public class BigDecimalMethodWithoutRoundingCalledInspectionTest extends LightJavaInspectionTestCase {
|
||||
|
||||
@Override
|
||||
@@ -29,9 +30,9 @@ public class BigDecimalMethodWithoutRoundingCalledInspectionTest extends LightJa
|
||||
public void testSetScale() {
|
||||
doTest("import java.math.BigDecimal;" +
|
||||
"class X {" +
|
||||
" void foo(BigDecimal value) {" +
|
||||
" value./*'BigDecimal.setScale()' called without a rounding mode argument*/setScale/**/(2);" +
|
||||
" value.setScale(2, 1);" +
|
||||
" static void foo(BigDecimal value) {" +
|
||||
" value = value./*'BigDecimal.setScale()' called without a rounding mode argument*/setScale/**/(2);" +
|
||||
" System.out.println(value.setScale(2, 1));" +
|
||||
" }" +
|
||||
"}");
|
||||
}
|
||||
@@ -39,9 +40,9 @@ public class BigDecimalMethodWithoutRoundingCalledInspectionTest extends LightJa
|
||||
public void testDivide() {
|
||||
doTest("import java.math.BigDecimal;" +
|
||||
"class X {" +
|
||||
" void foo(BigDecimal value) {" +
|
||||
" value./*'BigDecimal.divide()' called without a rounding mode argument*/divide/**/(value);" +
|
||||
" value.divide(value, 1);" +
|
||||
" static void foo(BigDecimal value) {" +
|
||||
" value = value./*'BigDecimal.divide()' called without a rounding mode argument*/divide/**/(value);" +
|
||||
" System.out.println(value.divide(value, 1));" +
|
||||
" }" +
|
||||
"}");
|
||||
}
|
||||
@@ -50,7 +51,7 @@ public class BigDecimalMethodWithoutRoundingCalledInspectionTest extends LightJa
|
||||
doTest("import java.math.BigDecimal;\n" +
|
||||
"import java.math.RoundingMode;\n" +
|
||||
"class B {\n" +
|
||||
" public BigDecimal scaleValue(BigDecimal v) {\n" +
|
||||
" public static BigDecimal scaleValue(BigDecimal v) {\n" +
|
||||
" return setScale(v);\n" +
|
||||
" }\n" +
|
||||
"\n" +
|
||||
|
||||
Reference in New Issue
Block a user