mirror of
https://github.com/skylot/jadx.git
synced 2024-12-03 18:31:02 +00:00
chore: fix typos
This commit is contained in:
parent
4e81bdd76f
commit
762c2d70bd
20
.typos.toml
Normal file
20
.typos.toml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# Config for 'typos' spellchecker (https://github.com/crate-ci/typos)
|
||||||
|
|
||||||
|
[default.extend-words]
|
||||||
|
IPUT = "IPUT"
|
||||||
|
Laf = "Laf"
|
||||||
|
Darcula="Darcula"
|
||||||
|
|
||||||
|
[default]
|
||||||
|
extend-ignore-identifiers-re = [
|
||||||
|
"finaly", # intentional package name
|
||||||
|
]
|
||||||
|
|
||||||
|
[files]
|
||||||
|
extend-exclude = [
|
||||||
|
"config/",
|
||||||
|
"jadx-core/src/main/resources/",
|
||||||
|
"jadx-core/src/test/",
|
||||||
|
"jadx-gui/src/main/resources/i18n/",
|
||||||
|
"!jadx-gui/src/main/resources/i18n/Messages_en_US.properties",
|
||||||
|
]
|
@ -36,7 +36,7 @@ public class SingleClassMode {
|
|||||||
throw new JadxRuntimeException("Input class not found: " + singleClass);
|
throw new JadxRuntimeException("Input class not found: " + singleClass);
|
||||||
}
|
}
|
||||||
if (clsForProcess.contains(AFlag.DONT_GENERATE)) {
|
if (clsForProcess.contains(AFlag.DONT_GENERATE)) {
|
||||||
throw new JadxRuntimeException("Input class can't be saved by currect jadx settings (marked as DONT_GENERATE)");
|
throw new JadxRuntimeException("Input class can't be saved by current jadx settings (marked as DONT_GENERATE)");
|
||||||
}
|
}
|
||||||
if (clsForProcess.isInner()) {
|
if (clsForProcess.isInner()) {
|
||||||
clsForProcess = clsForProcess.getTopParentClass();
|
clsForProcess = clsForProcess.getTopParentClass();
|
||||||
|
@ -675,13 +675,13 @@ public final class TypeInferenceVisitor extends AbstractVisitor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean trySplitConstInsns(MethodNode mth) {
|
private boolean trySplitConstInsns(MethodNode mth) {
|
||||||
boolean constSplitted = false;
|
boolean constSplit = false;
|
||||||
for (SSAVar var : new ArrayList<>(mth.getSVars())) {
|
for (SSAVar var : new ArrayList<>(mth.getSVars())) {
|
||||||
if (checkAndSplitConstInsn(mth, var)) {
|
if (checkAndSplitConstInsn(mth, var)) {
|
||||||
constSplitted = true;
|
constSplit = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!constSplitted) {
|
if (!constSplit) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
InitCodeVariables.rerun(mth);
|
InitCodeVariables.rerun(mth);
|
||||||
|
@ -155,7 +155,7 @@ public class ParserConstants {
|
|||||||
protected static final int FLAG_COMPLEX = 0x0001;
|
protected static final int FLAG_COMPLEX = 0x0001;
|
||||||
// If set, this resource has been declared public, so libraries are allowed to reference it.
|
// If set, this resource has been declared public, so libraries are allowed to reference it.
|
||||||
protected static final int FLAG_PUBLIC = 0x0002;
|
protected static final int FLAG_PUBLIC = 0x0002;
|
||||||
// If set, this is a weak resource and may be overriden by strong resources of the same name/type.
|
// If set, this is a weak resource and may be overridden by strong resources of the same name/type.
|
||||||
// This is only useful during linking with other resource tables.
|
// This is only useful during linking with other resource tables.
|
||||||
protected static final int FLAG_WEAK = 0x0004;
|
protected static final int FLAG_WEAK = 0x0004;
|
||||||
|
|
||||||
|
@ -392,7 +392,7 @@ public class SmaliDebugger {
|
|||||||
|
|
||||||
public interface MethodEntryListener {
|
public interface MethodEntryListener {
|
||||||
/**
|
/**
|
||||||
* return ture to remove
|
* return true to remove
|
||||||
*/
|
*/
|
||||||
boolean entry(String mthSig);
|
boolean entry(String mthSig);
|
||||||
}
|
}
|
||||||
|
@ -1055,7 +1055,7 @@ public class SmaliTokenMaker extends AbstractJFlexCTokenMaker {
|
|||||||
|
|
||||||
/* error messages for the codes above */
|
/* error messages for the codes above */
|
||||||
private static final String ZZ_ERROR_MSG[] = {
|
private static final String ZZ_ERROR_MSG[] = {
|
||||||
"Unkown internal scanner error",
|
"Unknown internal scanner error",
|
||||||
"Error: could not match input",
|
"Error: could not match input",
|
||||||
"Error: pushback value was too large"
|
"Error: pushback value was too large"
|
||||||
};
|
};
|
||||||
@ -1393,7 +1393,7 @@ public class SmaliTokenMaker extends AbstractJFlexCTokenMaker {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reports an error that occured while scanning.
|
* Reports an error that occurred while scanning.
|
||||||
*
|
*
|
||||||
* In a wellformed scanner (no or only correct usage of
|
* In a wellformed scanner (no or only correct usage of
|
||||||
* yypushback(int) and a match-all fallback rule) this method
|
* yypushback(int) and a match-all fallback rule) this method
|
||||||
|
@ -92,7 +92,7 @@ public class WrapLayout extends FlowLayout {
|
|||||||
*/
|
*/
|
||||||
private Dimension layoutSize(Container target, boolean preferred) {
|
private Dimension layoutSize(Container target, boolean preferred) {
|
||||||
synchronized (target.getTreeLock()) {
|
synchronized (target.getTreeLock()) {
|
||||||
// Each row must fit with the width allocated to the containter.
|
// Each row must fit with the width allocated to the container.
|
||||||
// When the container width = 0, the preferred width of the container
|
// When the container width = 0, the preferred width of the container
|
||||||
// has not yet been calculated so lets ask for the maximum.
|
// has not yet been calculated so lets ask for the maximum.
|
||||||
|
|
||||||
@ -155,7 +155,7 @@ public class WrapLayout extends FlowLayout {
|
|||||||
|
|
||||||
// When using a scroll pane or the DecoratedLookAndFeel we need to
|
// When using a scroll pane or the DecoratedLookAndFeel we need to
|
||||||
// make sure the preferred size is less than the size of the
|
// make sure the preferred size is less than the size of the
|
||||||
// target containter so shrinking the container size works
|
// target container so shrinking the container size works
|
||||||
// correctly. Removing the horizontal gap is an easy way to do this.
|
// correctly. Removing the horizontal gap is an easy way to do this.
|
||||||
|
|
||||||
Container scrollPane = SwingUtilities.getAncestorOfClass(JScrollPane.class, target);
|
Container scrollPane = SwingUtilities.getAncestorOfClass(JScrollPane.class, target);
|
||||||
|
Loading…
Reference in New Issue
Block a user