Making note re: why a deprecated method is being used.

This commit is contained in:
Rob Greene 2022-01-15 20:01:10 -06:00
parent 9005a07280
commit 8ee2256bb4
1 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,8 @@ public class SwtUtil {
/**
* Setup some sensible paging information.
*/
public static void setupPagingInformation(ScrolledComposite composite) {
@SuppressWarnings("deprecation") // Using deprecated method for older RPi SWT version
public static void setupPagingInformation(ScrolledComposite composite) {
GC gc = new GC(composite);
FontMetrics fontMetrics = gc.getFontMetrics();
gc.dispose();