HBASE-22962 Fix typo in javadoc description (#569)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
康智冬 2019-09-01 21:08:40 +08:00 committed by Duo Zhang
parent 4af1b0eb9c
commit 212fa2e6d5
10 changed files with 13 additions and 13 deletions

View File

@ -337,7 +337,7 @@ public abstract class CommonFSUtils {
} }
/** /**
* Return the 'path' component of a Path. In Hadoop, Path is an URI. This * Return the 'path' component of a Path. In Hadoop, Path is a URI. This
* method returns the 'path' component of a Path's URI: e.g. If a Path is * method returns the 'path' component of a Path's URI: e.g. If a Path is
* <code>hdfs://example.org:9000/hbase_trunk/TestTable/compaction.dir</code>, * <code>hdfs://example.org:9000/hbase_trunk/TestTable/compaction.dir</code>,
* this method returns <code>/hbase_trunk/TestTable/compaction.dir</code>. * this method returns <code>/hbase_trunk/TestTable/compaction.dir</code>.

View File

@ -119,7 +119,7 @@ public class JMXJsonServlet extends HttpServlet {
/** /**
* If query string includes 'description', then we will emit bean and attribute descriptions to * If query string includes 'description', then we will emit bean and attribute descriptions to
* output IFF they are not null and IFF the description is not the same as the attribute name: * output IFF they are not null and IFF the description is not the same as the attribute name:
* i.e. specify an URL like so: /jmx?description=true * i.e. specify a URL like so: /jmx?description=true
*/ */
private static final String INCLUDE_DESCRIPTION = "description"; private static final String INCLUDE_DESCRIPTION = "description";

View File

@ -114,7 +114,7 @@ public class TestGlobalFilter extends HttpServerFunctionalTest {
public void testServletFilter() throws Exception { public void testServletFilter() throws Exception {
Configuration conf = new Configuration(); Configuration conf = new Configuration();
//start a http server with CountingFilter //start an http server with CountingFilter
conf.set(HttpServer.FILTER_INITIALIZERS_PROPERTY, conf.set(HttpServer.FILTER_INITIALIZERS_PROPERTY,
RecordingFilter.Initializer.class.getName()); RecordingFilter.Initializer.class.getName());
HttpServer http = createTestServer(conf); HttpServer http = createTestServer(conf);

View File

@ -115,7 +115,7 @@ public class TestPathFilter extends HttpServerFunctionalTest {
public void testPathSpecFilters() throws Exception { public void testPathSpecFilters() throws Exception {
Configuration conf = new Configuration(); Configuration conf = new Configuration();
//start a http server with CountingFilter //start an http server with CountingFilter
conf.set(HttpServer.FILTER_INITIALIZERS_PROPERTY, conf.set(HttpServer.FILTER_INITIALIZERS_PROPERTY,
RecordingFilter.Initializer.class.getName()); RecordingFilter.Initializer.class.getName());
String[] pathSpecs = { "/path", "/path/*" }; String[] pathSpecs = { "/path", "/path/*" };

View File

@ -125,7 +125,7 @@ public class TestServletFilter extends HttpServerFunctionalTest {
public void testServletFilter() throws Exception { public void testServletFilter() throws Exception {
Configuration conf = new Configuration(); Configuration conf = new Configuration();
//start a http server with CountingFilter //start an http server with CountingFilter
conf.set(HttpServer.FILTER_INITIALIZERS_PROPERTY, conf.set(HttpServer.FILTER_INITIALIZERS_PROPERTY,
SimpleFilter.Initializer.class.getName()); SimpleFilter.Initializer.class.getName());
HttpServer http = createTestServer(conf); HttpServer http = createTestServer(conf);
@ -187,7 +187,7 @@ public class TestServletFilter extends HttpServerFunctionalTest {
@Test @Test
public void testServletFilterWhenInitThrowsException() throws Exception { public void testServletFilterWhenInitThrowsException() throws Exception {
Configuration conf = new Configuration(); Configuration conf = new Configuration();
// start a http server with ErrorFilter // start an http server with ErrorFilter
conf.set(HttpServer.FILTER_INITIALIZERS_PROPERTY, conf.set(HttpServer.FILTER_INITIALIZERS_PROPERTY,
ErrorFilter.Initializer.class.getName()); ErrorFilter.Initializer.class.getName());
HttpServer http = createTestServer(conf); HttpServer http = createTestServer(conf);

View File

@ -29,7 +29,7 @@ import org.apache.http.Header;
import org.apache.http.HttpResponse; import org.apache.http.HttpResponse;
/** /**
* The HTTP result code, response headers, and body of a HTTP response. * The HTTP result code, response headers, and body of an HTTP response.
*/ */
@InterfaceAudience.Public @InterfaceAudience.Public
public class Response { public class Response {

View File

@ -34,9 +34,9 @@ public class CacheableDeserializerIdManager {
private static final AtomicInteger identifier = new AtomicInteger(0); private static final AtomicInteger identifier = new AtomicInteger(0);
/** /**
* Register the given cacheable deserializer and generate an unique identifier * Register the given {@link Cacheable} -- usually an hfileblock instance, these implement
* id for it * the Cacheable Interface -- deserializer and generate a unique identifier id for it and return
* @param cd * this as our result.
* @return the identifier of given cacheable deserializer * @return the identifier of given cacheable deserializer
*/ */
public static int registerDeserializer(CacheableDeserializer<Cacheable> cd) { public static int registerDeserializer(CacheableDeserializer<Cacheable> cd) {

View File

@ -457,7 +457,7 @@ public class HMaster extends HRegionServer implements MasterServices {
redirectHost = request.getServerName(); redirectHost = request.getServerName();
if(!Addressing.isLocalAddress(InetAddress.getByName(redirectHost))) { if(!Addressing.isLocalAddress(InetAddress.getByName(redirectHost))) {
LOG.warn("Couldn't resolve '" + redirectHost + "' as an address local to this node and '" + LOG.warn("Couldn't resolve '" + redirectHost + "' as an address local to this node and '" +
MASTER_HOSTNAME_KEY + "' is not set; client will get a HTTP 400 response. If " + MASTER_HOSTNAME_KEY + "' is not set; client will get an HTTP 400 response. If " +
"your HBase deployment relies on client accessible names that the region server process " + "your HBase deployment relies on client accessible names that the region server process " +
"can't resolve locally, then you should set the previously mentioned configuration variable " + "can't resolve locally, then you should set the previously mentioned configuration variable " +
"to an appropriate hostname."); "to an appropriate hostname.");

View File

@ -105,7 +105,7 @@ public class ReplicationSyncUp extends Configured implements Tool {
ZKWatcher zkw; ZKWatcher zkw;
DummyServer(ZKWatcher zkw) { DummyServer(ZKWatcher zkw) {
// an unique name in case the first run fails // a unique name in case the first run fails
hostname = System.currentTimeMillis() + ".SyncUpTool.replication.org"; hostname = System.currentTimeMillis() + ".SyncUpTool.replication.org";
this.zkw = zkw; this.zkw = zkw;
} }

View File

@ -59,7 +59,7 @@ public abstract class GenericTestUtils {
/** /**
* Generates a process-wide unique sequence number. * Generates a process-wide unique sequence number.
* @return an unique sequence number * @return a unique sequence number
*/ */
public static int uniqueSequenceId() { public static int uniqueSequenceId() {
return sequence.incrementAndGet(); return sequence.incrementAndGet();