From fa99b9c0c7c8bc14dd4faf8871ef37bc2cc37cbf Mon Sep 17 00:00:00 2001 From: NebelNidas Date: Sun, 7 Apr 2024 20:18:58 +0200 Subject: [PATCH] Better wording in comment --- .../main/java/cuchaz/enigma/source/jadx/JadxSource.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/enigma/src/main/java/cuchaz/enigma/source/jadx/JadxSource.java b/enigma/src/main/java/cuchaz/enigma/source/jadx/JadxSource.java index 58c7f885..aaee391d 100644 --- a/enigma/src/main/java/cuchaz/enigma/source/jadx/JadxSource.java +++ b/enigma/src/main/java/cuchaz/enigma/source/jadx/JadxSource.java @@ -38,10 +38,10 @@ public class JadxSource implements Source { /* * JADX uses the system default line ending, but JEditorPane does not (seems to be hardcoded to \n). - * This causes tokens to be offset by one char per preceding line, since Windows' \r\n is one char longer than plain \r or \n. - * Unfortunately, the only way of making JADX use a different value is by changing the corresponding system property, - * which we can't leave changed as it may cause issues elsewhere in the program. - * Thus, we force a ICodeWriter class load here so the NL constant gets initialized to \n. + * This causes tokens to be offset by one char per preceding line, since Windows' \r\n is one char longer than plain \n. + * Unfortunately, the only way of making JADX use a different value is by adjusting the corresponding system property, + * which we can't leave in a modified as it may cause issues elsewhere in the program. + * Thus, we force-load the NL constant now to initialize it to \n and immediately reset the system property again. * TODO: Remove once https://github.com/skylot/jadx/issues/1948 is addressed. */ static {