Skip to content

Commit d5ad06e

Browse files
tastybentoclaude
andcommitted
Rename local 'l' to 'loc' to avoid hiding field in AcidTaskTest (S1117)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7d7e603 commit d5ad06e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/test/java/world/bentobox/acidisland/world/AcidTaskTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,11 @@ void testApplyDamageNoItemDamage() {
210210
@Test
211211
void testApplyDamageKeepItems() {
212212
Item e = mock(Item.class);
213-
Location l = mock(Location.class);
213+
Location loc = mock(Location.class);
214214
Block block = mock(Block.class);
215215
when(block.getType()).thenReturn(Material.AIR);
216-
when(l.getBlock()).thenReturn(block);
217-
when(e.getLocation()).thenReturn(l);
216+
when(loc.getBlock()).thenReturn(block);
217+
when(e.getLocation()).thenReturn(loc);
218218
when(e.getWorld()).thenReturn(world);
219219
// Put the item in the water
220220

0 commit comments

Comments
 (0)