mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +02:00
GP-0: Fixing deprecated comment API warnings
This commit is contained in:
parent
5772ac2ab8
commit
684177702e
120 changed files with 1595 additions and 1641 deletions
|
@ -52,7 +52,7 @@ public class DiffApplyMergeTest extends DiffApplyTestAdapter {
|
|||
assertEquals(origDiffs.subtract(as), diffPlugin.getDiffHighlightSelection());
|
||||
Listing listing = program.getListing();
|
||||
CodeUnit cu = listing.getCodeUnitAt(addr("100415a"));
|
||||
assertEquals("This is my function for testing diff", cu.getComment(CodeUnit.PLATE_COMMENT));
|
||||
assertEquals("This is my function for testing diff", cu.getComment(CommentType.PLATE));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -68,7 +68,7 @@ public class DiffApplyMergeTest extends DiffApplyTestAdapter {
|
|||
assertEquals(origDiffs, diffPlugin.getDiffHighlightSelection());
|
||||
Listing listing = program.getListing();
|
||||
CodeUnit cu = listing.getCodeUnitAt(addr("1002395"));
|
||||
assertEquals("Pre: Program1\nPre: Program2", cu.getComment(CodeUnit.PRE_COMMENT));
|
||||
assertEquals("Pre: Program1\nPre: Program2", cu.getComment(CommentType.PRE));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -84,7 +84,7 @@ public class DiffApplyMergeTest extends DiffApplyTestAdapter {
|
|||
assertEquals(origDiffs, diffPlugin.getDiffHighlightSelection());
|
||||
Listing listing = program.getListing();
|
||||
CodeUnit cu = listing.getCodeUnitAt(addr("100238f"));
|
||||
assertEquals("EOL: Program1\nEOL: Program2", cu.getComment(CodeUnit.EOL_COMMENT));
|
||||
assertEquals("EOL: Program1\nEOL: Program2", cu.getComment(CommentType.EOL));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -101,7 +101,7 @@ public class DiffApplyMergeTest extends DiffApplyTestAdapter {
|
|||
Listing listing = program.getListing();
|
||||
CodeUnit cu = listing.getCodeUnitAt(addr("1002336"));
|
||||
assertEquals("ONE: Repeatable comment.\nTWO: Repeatable comment.",
|
||||
cu.getComment(CodeUnit.REPEATABLE_COMMENT));
|
||||
cu.getComment(CommentType.REPEATABLE));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -117,7 +117,7 @@ public class DiffApplyMergeTest extends DiffApplyTestAdapter {
|
|||
assertEquals(origDiffs, diffPlugin.getDiffHighlightSelection());
|
||||
Listing listing = program.getListing();
|
||||
CodeUnit cu = listing.getCodeUnitAt(addr("100239d"));
|
||||
assertEquals("Post: Program1\nPost: Program2", cu.getComment(CodeUnit.POST_COMMENT));
|
||||
assertEquals("Post: Program1\nPost: Program2", cu.getComment(CommentType.POST));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue