PrevPrevious commit
Next Next commit
rename variable for clarity
  • Loading branch information
@elharo
elharo committedJan 27, 2020
commit e12eed8b7b4710528c52b3c449975218d3636db2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
/*
* Copyright (c) 2010 Google Inc.

*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
Expand All@@ -25,7 +26,7 @@
*/
public final class CharEscapers {

private static final Escaper URI_ESCAPER =
private static final Escaper APPLICATION_X_WWW_FORM_URLENCODED =
new PercentEscaper(PercentEscaper.SAFECHARS_URLENCODER, true);

private static final Escaper URI_PATH_ESCAPER =
Expand DownExpand Up@@ -68,7 +69,7 @@ public final class CharEscapers {
* </ul>
*/
public static String escapeUri(String value) {
return URI_ESCAPER.escape(value);
return APPLICATION_X_WWW_FORM_URLENCODED.escape(value);
}

/**
Expand Down