mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 21:29:54 +01:00
Add safety annotations.
This commit is contained in:
@@ -1,13 +1,19 @@
|
|||||||
package org.briarproject.briar.android;
|
package org.briarproject.briar.android;
|
||||||
|
|
||||||
|
import org.briarproject.bramble.api.nullsafety.NotNullByDefault;
|
||||||
|
|
||||||
import java.util.logging.Handler;
|
import java.util.logging.Handler;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import java.util.logging.LogRecord;
|
import java.util.logging.LogRecord;
|
||||||
|
|
||||||
|
import javax.annotation.concurrent.Immutable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Log handler that raises all records at or above a given source level to a
|
* Log handler that raises all records at or above a given source level to a
|
||||||
* given destination level. This affects the level seen by subsequent handlers.
|
* given destination level. This affects the level seen by subsequent handlers.
|
||||||
*/
|
*/
|
||||||
|
@Immutable
|
||||||
|
@NotNullByDefault
|
||||||
class LevelRaisingHandler extends Handler {
|
class LevelRaisingHandler extends Handler {
|
||||||
|
|
||||||
private final Level dest;
|
private final Level dest;
|
||||||
|
|||||||
Reference in New Issue
Block a user