| Author | DaveJarvis <email> |
|---|---|
| Date | 2020-09-12 18:55:30 GMT-0700 |
| Commit | 4ef5259e0932882354f2f0fa9e350afa6fa4ba95 |
| Parent | 034228b |
| import java.net.URL; | ||
| +import static com.scrivenvar.util.ProtocolScheme.UNKNOWN; | ||
| + | ||
| /** | ||
| * Responsible for determining the protocol of a resource. | ||
| result = file.toURI().toURL().getProtocol(); | ||
| } catch( final MalformedURLException ex ) { | ||
| - // Arbitrary value to avoid identification as a standard protocol. | ||
| - result = "unknown"; | ||
| + // Value guaranteed to avoid identification as a standard protocol. | ||
| + result = UNKNOWN.toString(); | ||
| } | ||
| Delta | 4 lines added, 2 lines removed, 2-line increase |
|---|