The goal is to write a FindBugs detector that will find all the places in the code that are making calls to the logging framework without being wrapped in a guard clause.
目标是编写一个FindBugs检测器,它将找出代码中调用日志框架而未被包装在监护子句中的所有地方。
Listing 3 shows an example of a USER Not Authenticated or FAKED USER error that occurs if you run a program to access a guard point after logging in via a non-authorized login method.
清单3显示了一个USERNotAuthenticated或FAKED USER错误的例子,当您通过不支持的登录方法登录并运行访问保护点的程序之后,就会出现此类错误。
SeenGuardClauseAt: the value of the program counter when the logging guard clause is discovered in the analyzed code.
seenGuardClauseAt:在所分析的代码中发现日志监护子句时,程序计数器的值。
The standard way to handle this problem is to check first to see if logging is enabled before constructing expensive logging messages. In other words, use a guard clause like Listing 1.
解决这个问题的标准方式是在构造昂贵的日志消息之前,首先检查是否启用了日志。
Rookie point guard Toney Douglas has been logging significant minutes in the preseason and handled the backup point guard position well.
新秀控卫道格拉斯在季前赛得到了很多上场时间,而且表现的很不错。
So, logging statements should generally be wrapped in a code guard to see if the application is running at some specific logging level.
因此,登陆信息一般应被包裹在一个代码包裹中来看是否应用程序运行于某些特定的记录层次。
So, logging statements should generally be wrapped in a code guard to see if the application is running at some specific logging level.
因此,登陆信息一般应被包裹在一个代码包裹中来看是否应用程序运行于某些特定的记录层次。
应用推荐