forked from SayaliPatiil/javacheck
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f171443
commit 81c85e2
Showing
1 changed file
with
2 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,9 @@ | ||
import java.util.*; | ||
import java.lang.*; | ||
package javacodechecker; | ||
|
||
class systemexit | ||
{ | ||
public static void main(String[] args) | ||
{ | ||
|
||
|
||
package javacodechecker; | ||
public class RedirectWithoutExit { | ||
public void bad(HttpServletRequest request, HttpServletResponse response) throws Throwable { | ||
IO.writeLine("line before redirect"); | ||
IO.writeLine("line before redirect"); | ||
response.sendRedirect("/test"); | ||
IO.writeLine("line after redirect"); | ||
} | ||
|
||
private static final int MAX_NEMBER_OF_REQUEST=5; | ||
public int arr[] = {1, 2, 3, 4, 5, 6, 7, 8}; | ||
|
||
for (int i = 0; i < arr.length; i++) | ||
{ | ||
if (arr[i] >=MAX_NEMBER_OF_REQUEST ) | ||
{ | ||
logger.info("exit..."); | ||
|
||
|
||
} | ||
else | ||
logger.info("arr["+i+"] = " + | ||
arr[i]); | ||
} | ||
logger.info("End of Program"); | ||
} | ||
|
||
} |