Skip to content

Commit f2180a3

Browse files
committed
Restoring package-private access to isIPv4()
1 parent 66ba7e0 commit f2180a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/mapper-patterned-text/src/main/java/org/elasticsearch/xpack/patternedtext/PatternedTextValueProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ private static boolean isTimestamp(String text) {
141141
* @param bytes the byte array to fill with the parsed UUID bytes
142142
* @return true if the text is a valid IPv4 address, false otherwise
143143
*/
144-
public static boolean isIpv4(String text, byte[] bytes) {
144+
static boolean isIpv4(String text, byte[] bytes) {
145145
if (text.length() < 7 || text.length() > 15) {
146146
return false;
147147
}

0 commit comments

Comments
 (0)