Remove unnecessary loop in SerializableTypeWrapper

Since arbitrary levels of proxies do not occur, this commit replaces
the `while` loop in SerializableTypeWrapper.unwrap() with a simple
`if` statement.

Closes gh-23415
This commit is contained in:
Sam Brannen
2019-08-07 12:24:48 +02:00
parent 83956f8e8b
commit a43ba052e9
2 changed files with 4 additions and 5 deletions

View File

@@ -33,8 +33,6 @@ import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
/**
* Tests for {@link SerializableTypeWrapper}.
*