Thread: K5 JBPatch
View Single Post
Old 01-01-2013, 04:30 PM   #1000
knc1
Helpdesk Junkie
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: 6,860
Karma: 6314522
Join Date: Feb 2012
Device: Too many.
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