我想删除所有带 proguard 的打印语句。是否与下面的代码相同,但适用于 <?php
if(isset($_POST['bttlogin'])){
require 'connection.php';
$email= $_POST['email'];
$password= $_POST['password'];
$result = mysqli_query($conn, "SELECT * FROM Users WHERE email=`$email` && password= `$password`");
if(mysqli_num_rows($result) == 1){
echo "Welcome";
}
else{
echo "Error";
}
}
?>
<form action = "http://raptor.kent.ac.uk/~fn40/index1.php" method= "POST">
<table cellpadding="2" cellspacing="2" border="0">
<tr>
<td>Email</td>
<td><input type="text" name="email"></td>
</tr>
<tr>
<td>Password</td>
<td><input type="password" name="password"></td>
</tr>
<tr>
<td></td>
<td><input type="submit" name="bttlogin" value="Login"></td>
<tr>
</table>
</form>
System.out.println()
答案 0 :(得分:7)
要删除所有System.out.println
,您可以在规则中添加以下内容。
-assumenosideeffects class java.io.PrintStream {
public void println(%);
public void println(**);
}