Skip to content

Commit 97fbaa6

Browse files
KangZhiDongApache9
authored andcommitted
HBASE-22962 Fix typo in javadoc description (#569)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
1 parent b642ee0 commit 97fbaa6

File tree

14 files changed

+19
-19
lines changed

14 files changed

+19
-19
lines changed

hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/util/BackupUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ public static FileStatus[] listStatus(final FileSystem fs, final Path dir,
535535
}
536536

537537
/**
538-
* Return the 'path' component of a Path. In Hadoop, Path is an URI. This method returns the
538+
* Return the 'path' component of a Path. In Hadoop, Path is a URI. This method returns the
539539
* 'path' component of a Path's URI: e.g. If a Path is
540540
* <code>hdfs://example.org:9000/hbase_trunk/TestTable/compaction.dir</code>, this method returns
541541
* <code>/hbase_trunk/TestTable/compaction.dir</code>. This method is useful if you want to print

hbase-common/src/main/java/org/apache/hadoop/hbase/util/CommonFSUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ public static String removeWALRootPath(Path path, final Configuration conf) thro
337337
}
338338

339339
/**
340-
* Return the 'path' component of a Path. In Hadoop, Path is an URI. This
340+
* Return the 'path' component of a Path. In Hadoop, Path is a URI. This
341341
* method returns the 'path' component of a Path's URI: e.g. If a Path is
342342
* <code>hdfs://example.org:9000/hbase_trunk/TestTable/compaction.dir</code>,
343343
* this method returns <code>/hbase_trunk/TestTable/compaction.dir</code>.

hbase-http/src/main/java/org/apache/hadoop/hbase/http/jmx/JMXJsonServlet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public class JMXJsonServlet extends HttpServlet {
119119
/**
120120
* If query string includes 'description', then we will emit bean and attribute descriptions to
121121
* output IFF they are not null and IFF the description is not the same as the attribute name:
122-
* i.e. specify an URL like so: /jmx?description=true
122+
* i.e. specify a URL like so: /jmx?description=true
123123
*/
124124
private static final String INCLUDE_DESCRIPTION = "description";
125125

hbase-http/src/test/java/org/apache/hadoop/hbase/http/TestGlobalFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public void initFilter(FilterContainer container, Configuration conf) {
8989
public void testServletFilter() throws Exception {
9090
Configuration conf = new Configuration();
9191

92-
//start a http server with CountingFilter
92+
//start an http server with CountingFilter
9393
conf.set(HttpServer.FILTER_INITIALIZERS_PROPERTY,
9494
RecordingFilter.Initializer.class.getName());
9595
HttpServer http = createTestServer(conf);

hbase-http/src/test/java/org/apache/hadoop/hbase/http/TestPathFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public void initFilter(FilterContainer container, Configuration conf) {
8989
public void testPathSpecFilters() throws Exception {
9090
Configuration conf = new Configuration();
9191

92-
//start a http server with CountingFilter
92+
//start an http server with CountingFilter
9393
conf.set(HttpServer.FILTER_INITIALIZERS_PROPERTY,
9494
RecordingFilter.Initializer.class.getName());
9595
String[] pathSpecs = { "/path", "/path/*" };

hbase-http/src/test/java/org/apache/hadoop/hbase/http/TestServletFilter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ private static void assertExceptionContains(String string, Throwable t) {
101101
public void testServletFilter() throws Exception {
102102
Configuration conf = new Configuration();
103103

104-
//start a http server with CountingFilter
104+
//start an http server with CountingFilter
105105
conf.set(HttpServer.FILTER_INITIALIZERS_PROPERTY,
106106
SimpleFilter.Initializer.class.getName());
107107
HttpServer http = createTestServer(conf);
@@ -163,7 +163,7 @@ public void initFilter(FilterContainer container, Configuration conf) {
163163
@Test
164164
public void testServletFilterWhenInitThrowsException() throws Exception {
165165
Configuration conf = new Configuration();
166-
// start a http server with ErrorFilter
166+
// start an http server with ErrorFilter
167167
conf.set(HttpServer.FILTER_INITIALIZERS_PROPERTY,
168168
ErrorFilter.Initializer.class.getName());
169169
HttpServer http = createTestServer(conf);

hbase-http/src/test/java/org/apache/hadoop/hbase/http/log/TestLogLevel.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public static void setUp() throws Exception {
107107
setupSSL(BASEDIR);
108108

109109
kdc = setupMiniKdc();
110-
// Create two principles: a client and a HTTP principal
110+
// Create two principles: a client and an HTTP principal
111111
kdc.createPrincipal(KEYTAB_FILE, clientPrincipal, HTTP_PRINCIPAL);
112112
}
113113

@@ -407,7 +407,7 @@ public void testLogLevelByHttp() throws Exception {
407407
try {
408408
testDynamicLogLevel(LogLevel.PROTOCOL_HTTP, LogLevel.PROTOCOL_HTTPS,
409409
false);
410-
fail("A HTTPS Client should not have succeeded in connecting to a " +
410+
fail("An HTTPS Client should not have succeeded in connecting to a " +
411411
"HTTP server");
412412
} catch (SSLException e) {
413413
exceptionShouldContains("Unrecognized SSL message", e);
@@ -426,7 +426,7 @@ public void testLogLevelByHttpWithSpnego() throws Exception {
426426
try {
427427
testDynamicLogLevel(LogLevel.PROTOCOL_HTTP, LogLevel.PROTOCOL_HTTPS,
428428
true);
429-
fail("A HTTPS Client should not have succeeded in connecting to a " +
429+
fail("An HTTPS Client should not have succeeded in connecting to a " +
430430
"HTTP server");
431431
} catch (SSLException e) {
432432
exceptionShouldContains("Unrecognized SSL message", e);
@@ -446,7 +446,7 @@ public void testLogLevelByHttps() throws Exception {
446446
try {
447447
testDynamicLogLevel(LogLevel.PROTOCOL_HTTPS, LogLevel.PROTOCOL_HTTP,
448448
false);
449-
fail("A HTTP Client should not have succeeded in connecting to a " +
449+
fail("An HTTP Client should not have succeeded in connecting to a " +
450450
"HTTPS server");
451451
} catch (SocketException e) {
452452
exceptionShouldContains("Unexpected end of file from server", e);
@@ -466,7 +466,7 @@ public void testLogLevelByHttpsWithSpnego() throws Exception {
466466
try {
467467
testDynamicLogLevel(LogLevel.PROTOCOL_HTTPS, LogLevel.PROTOCOL_HTTP,
468468
true);
469-
fail("A HTTP Client should not have succeeded in connecting to a " +
469+
fail("An HTTP Client should not have succeeded in connecting to a " +
470470
"HTTPS server");
471471
} catch (SocketException e) {
472472
exceptionShouldContains("Unexpected end of file from server", e);

hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/client/Response.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import org.apache.http.HttpResponse;
3030

3131
/**
32-
* The HTTP result code, response headers, and body of a HTTP response.
32+
* The HTTP result code, response headers, and body of an HTTP response.
3333
*/
3434
@InterfaceAudience.Public
3535
public class Response {

hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/CacheableDeserializerIdManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class CacheableDeserializerIdManager {
4040

4141
/**
4242
* Register the given {@link Cacheable} -- usually an hfileblock instance, these implement
43-
* the Cacheable Interface -- deserializer and generate an unique identifier id for it and return
43+
* the Cacheable Interface -- deserializer and generate a unique identifier id for it and return
4444
* this as our result.
4545
* @return the identifier of given cacheable deserializer
4646
* @see #getDeserializer(int)

hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ public void doGet(HttpServletRequest request,
465465
redirectHost = request.getServerName();
466466
if(!Addressing.isLocalAddress(InetAddress.getByName(redirectHost))) {
467467
LOG.warn("Couldn't resolve '" + redirectHost + "' as an address local to this node and '" +
468-
MASTER_HOSTNAME_KEY + "' is not set; client will get a HTTP 400 response. If " +
468+
MASTER_HOSTNAME_KEY + "' is not set; client will get an HTTP 400 response. If " +
469469
"your HBase deployment relies on client accessible names that the region server process " +
470470
"can't resolve locally, then you should set the previously mentioned configuration variable " +
471471
"to an appropriate hostname.");

hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSyncUp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class DummyServer implements Server {
104104
ZKWatcher zkw;
105105

106106
DummyServer(ZKWatcher zkw) {
107-
// an unique name in case the first run fails
107+
// a unique name in case the first run fails
108108
hostname = System.currentTimeMillis() + ".SyncUpTool.replication.org";
109109
this.zkw = zkw;
110110
}

hbase-server/src/test/java/org/apache/hadoop/hbase/GenericTestUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public static String getMethodName() {
5959

6060
/**
6161
* Generates a process-wide unique sequence number.
62-
* @return an unique sequence number
62+
* @return a unique sequence number
6363
*/
6464
public static int uniqueSequenceId() {
6565
return sequence.incrementAndGet();

hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ protected TServlet createTServlet(TProtocolFactory protocolFactory) throws IOExc
324324
}
325325

326326
/**
327-
* Setup a HTTP Server using Jetty to serve calls from THttpClient
327+
* Setup an HTTP Server using Jetty to serve calls from THttpClient
328328
*
329329
* @throws IOException IOException
330330
*/

hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift2/TestThriftConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public static void setUp() throws Exception {
168168
httpPort = HBaseTestingUtility.randomFreePort();
169169
// Start a thrift server
170170
thriftServer = startThriftServer(thriftPort, false);
171-
// Start a HTTP thrift server
171+
// Start an HTTP thrift server
172172
thriftHttpServer = startThriftServer(httpPort, true);
173173
thriftConnection = createConnection(thriftPort, false);
174174
thriftHttpConnection = createConnection(httpPort, true);

0 commit comments

Comments
 (0)