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
1272ae2d
Commit
1272ae2d
authored
Jan 10, 2019
by
Skylot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(gui): don't skip indexing code lines starting with '}' (#426)
parent
ddaf0375
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
TextSearchIndex.java
.../src/main/java/jadx/gui/utils/search/TextSearchIndex.java
+11
-9
No files found.
jadx-gui/src/main/java/jadx/gui/utils/search/TextSearchIndex.java
View file @
1272ae2d
...
...
@@ -69,15 +69,17 @@ public class TextSearchIndex {
int
count
=
lines
.
size
();
for
(
int
i
=
0
;
i
<
count
;
i
++)
{
StringRef
line
=
lines
.
get
(
i
);
if
(
line
.
length
()
!=
0
&&
line
.
charAt
(
0
)
!=
'}'
)
{
int
lineNum
=
i
+
1
;
JavaNode
node
=
linesInfo
.
getJavaNodeByLine
(
lineNum
);
CodeNode
codeNode
=
new
CodeNode
(
nodeCache
.
makeFrom
(
node
==
null
?
cls
:
node
),
lineNum
,
line
);
if
(
strRefSupported
)
{
codeIndex
.
put
(
line
,
codeNode
);
}
else
{
codeIndex
.
put
(
line
.
toString
(),
codeNode
);
}
int
lineLength
=
line
.
length
();
if
(
lineLength
==
0
||
(
lineLength
==
1
&&
line
.
charAt
(
0
)
==
'}'
))
{
continue
;
}
int
lineNum
=
i
+
1
;
JavaNode
node
=
linesInfo
.
getJavaNodeByLine
(
lineNum
);
CodeNode
codeNode
=
new
CodeNode
(
nodeCache
.
makeFrom
(
node
==
null
?
cls
:
node
),
lineNum
,
line
);
if
(
strRefSupported
)
{
codeIndex
.
put
(
line
,
codeNode
);
}
else
{
codeIndex
.
put
(
line
.
toString
(),
codeNode
);
}
}
}
catch
(
Exception
e
)
{
...
...
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