When I use {@literal @} to including @ symbols in code blocks then the line starts with one space to much.
Sample snippet in package-info.java:
/**
* ```java
* {@literal @}RunWith(AndroidJUnit4.class)
* public class MyTest {
*
* {@literal @}Rule
* public IntentsTestRule<MyActivity> activityTestRule = new IntentsTestRule<>(MyActivity.class);
*
* }
* ```
*/
Expected result:
@RunWith(AndroidJUnit4.class)
public class MyTest {
@Rule
public IntentsTestRule<MyActivity> activityTestRule = new IntentsTestRule<>(MyActivity.class);
}
But result has one space to much at each @ symbol.
@RunWith(AndroidJUnit4.class)
public class MyTest {
@Rule
public IntentsTestRule<MyActivity> activityTestRule = new IntentsTestRule<>(MyActivity.class);
}
For @Rule I can remove one space and then it looks correct but at @RunWith this workaround does not work.
When I use
{@literal @}
to including @ symbols in code blocks then the line starts with one space to much.Sample snippet in
package-info.java
:Expected result:
But result has one space to much at each @ symbol.
For
@Rule
I can remove one space and then it looks correct but at@RunWith
this workaround does not work.