Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
J
jadx
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
jadx
Commits
eda22724
Commit
eda22724
authored
Apr 01, 2019
by
Ahmed Ashour
Committed by
skylot
Apr 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: use functional interface instead of ISettingsUpdater (PR #548)
parent
207ce6cb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
ISettingsUpdater.java
...gui/src/main/java/jadx/gui/settings/ISettingsUpdater.java
+0
-5
JadxSettings.java
jadx-gui/src/main/java/jadx/gui/settings/JadxSettings.java
+3
-2
No files found.
jadx-gui/src/main/java/jadx/gui/settings/ISettingsUpdater.java
deleted
100644 → 0
View file @
207ce6cb
package
jadx
.
gui
.
settings
;
public
interface
ISettingsUpdater
{
void
update
(
JadxSettings
settings
);
}
jadx-gui/src/main/java/jadx/gui/settings/JadxSettings.java
View file @
eda22724
...
@@ -13,6 +13,7 @@ import java.util.HashSet;
...
@@ -13,6 +13,7 @@ import java.util.HashSet;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.Set
;
import
java.util.Set
;
import
java.util.function.Consumer
;
import
org.fife.ui.rsyntaxtextarea.RSyntaxTextArea
;
import
org.fife.ui.rsyntaxtextarea.RSyntaxTextArea
;
import
org.jetbrains.annotations.Nullable
;
import
org.jetbrains.annotations.Nullable
;
...
@@ -67,9 +68,9 @@ public class JadxSettings extends JadxCLIArgs {
...
@@ -67,9 +68,9 @@ public class JadxSettings extends JadxCLIArgs {
JadxSettingsAdapter
.
store
(
this
);
JadxSettingsAdapter
.
store
(
this
);
}
}
p
ublic
void
partialSync
(
ISettingsUpdater
updater
)
{
p
rivate
void
partialSync
(
Consumer
<
JadxSettings
>
updater
)
{
JadxSettings
settings
=
JadxSettingsAdapter
.
load
();
JadxSettings
settings
=
JadxSettingsAdapter
.
load
();
updater
.
update
(
settings
);
updater
.
accept
(
settings
);
JadxSettingsAdapter
.
store
(
settings
);
JadxSettingsAdapter
.
store
(
settings
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment