Thread: JBPatch
View Single Post
Old 01-01-2013, 03:30 PM   #1000
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by ghudod View Post
ixtab, how about using grep and regex to search all source files for the margin-checking logic? (presumably X >= 50 or X < 50)

Something like:
grep -PHn '>=\s*?50|<\s*?50' *.java

That searches all Java files and displays filename and line number where "< 50" or ">= 50" is found (whitespace is accounted for). There will probably be some false positive, but it's certainly better than searching with eyeball.
Why?
Because Amazon did not ship us the source code.
All that is there is the *.class files.
knc1 is offline   Reply With Quote