mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
Fix method name typo (#3691)
This commit is contained in:
parent
1e89d7497b
commit
23f4802374
@ -122,7 +122,7 @@ public class NativeTypesTest {
|
|||||||
.isNotNull();
|
.isNotNull();
|
||||||
|
|
||||||
// most negative int: dec / octal / int / binary
|
// most negative int: dec / octal / int / binary
|
||||||
// NOTE parseInt should be changed to parseUnsignedInt in Java, than the - sign can disssapear (java8)
|
// NOTE parseInt should be changed to parseUnsignedInt in Java, than the - sign can dissapear (java8)
|
||||||
// and the function will be true to what the compiler shows.
|
// and the function will be true to what the compiler shows.
|
||||||
assertThat( getLiteral( int.class.getCanonicalName(), "-2147483648" ) ).isNotNull();
|
assertThat( getLiteral( int.class.getCanonicalName(), "-2147483648" ) ).isNotNull();
|
||||||
assertThat( getLiteral( int.class.getCanonicalName(), "0x8000_0000" ) ).isNotNull();
|
assertThat( getLiteral( int.class.getCanonicalName(), "0x8000_0000" ) ).isNotNull();
|
||||||
@ -177,7 +177,7 @@ public class NativeTypesTest {
|
|||||||
* The following example shows other ways you can use the underscore in numeric literals:
|
* The following example shows other ways you can use the underscore in numeric literals:
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testFloatingPoingLiteralFromJLS() {
|
public void testFloatingPointLiteralFromJLS() {
|
||||||
|
|
||||||
// The largest positive finite literal of type float is 3.4028235e38f.
|
// The largest positive finite literal of type float is 3.4028235e38f.
|
||||||
assertThat( getLiteral( float.class.getCanonicalName(), "3.4028235e38f" ) ).isNotNull();
|
assertThat( getLiteral( float.class.getCanonicalName(), "3.4028235e38f" ) ).isNotNull();
|
||||||
|
@ -41,7 +41,7 @@ public class AccessibilityTest {
|
|||||||
|
|
||||||
assertTrue( isDefault( defaultFromIfc.getModifiers() ) );
|
assertTrue( isDefault( defaultFromIfc.getModifiers() ) );
|
||||||
|
|
||||||
assertTrue( isPublic( modifiersFor( defaultFromIfc, "implicitlyPublicSoureToTarget" ) ) );
|
assertTrue( isPublic( modifiersFor( defaultFromIfc, "implicitlyPublicSourceToTarget" ) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Class<?> loadForMapper(Class<?> mapper) throws ClassNotFoundException {
|
private static Class<?> loadForMapper(Class<?> mapper) throws ClassNotFoundException {
|
||||||
|
@ -12,5 +12,5 @@ import org.mapstruct.Mapper;
|
|||||||
*/
|
*/
|
||||||
@Mapper
|
@Mapper
|
||||||
interface DefaultSourceTargetMapperIfc {
|
interface DefaultSourceTargetMapperIfc {
|
||||||
Target implicitlyPublicSoureToTarget(Source source);
|
Target implicitlyPublicSourceToTarget(Source source);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user