Skip to content

Commit fcbf686

Browse files
TonyRippygarrettjonesgoogle
authored andcommitted
Fixes typo in javadocs for Datastore's BaseEntity class. (googleapis#2403)
Replaces "...if not such property" with "...if no such property."
1 parent a93e3e3 commit fcbf686

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

  • google-cloud-datastore/src/main/java/com/google/cloud/datastore

‎google-cloud-datastore/src/main/java/com/google/cloud/datastore/BaseEntity.java‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ public boolean contains(String name) {
514514
/**
515515
* Returns the {@link Value} for the given property {@code name}.
516516
*
517-
* @throws DatastoreException if not such property
517+
* @throws DatastoreException if no such property
518518
*/
519519
public <V extends Value<?>> V getValue(String name) {
520520
@SuppressWarnings("unchecked")
@@ -528,7 +528,7 @@ public <V extends Value<?>> V getValue(String name) {
528528
/**
529529
* Returns true if property is an instance of NullValue.
530530
*
531-
* @throws DatastoreException if not such property
531+
* @throws DatastoreException if no such property
532532
*/
533533
public boolean isNull(String name) {
534534
return getValue(name) instanceof NullValue;
@@ -538,7 +538,7 @@ public boolean isNull(String name) {
538538
/**
539539
* Returns the property value as a string.
540540
*
541-
* @throws DatastoreException if not such property
541+
* @throws DatastoreException if no such property
542542
* @throws ClassCastException if value is not a string
543543
*/
544544
@SuppressWarnings("unchecked")
@@ -549,7 +549,7 @@ public String getString(String name) {
549549
/**
550550
* Returns the property value as long.
551551
*
552-
* @throws DatastoreException if not such property
552+
* @throws DatastoreException if no such property
553553
* @throws ClassCastException if value is not a long
554554
*/
555555
@SuppressWarnings("unchecked")
@@ -560,7 +560,7 @@ public long getLong(String name) {
560560
/**
561561
* Returns the property value as a double.
562562
*
563-
* @throws DatastoreException if not such property
563+
* @throws DatastoreException if no such property
564564
* @throws ClassCastException if value is not a double
565565
*/
566566
@SuppressWarnings("unchecked")
@@ -571,7 +571,7 @@ public double getDouble(String name) {
571571
/**
572572
* Returns the property value as a boolean.
573573
*
574-
* @throws DatastoreException if not such property
574+
* @throws DatastoreException if no such property
575575
* @throws ClassCastException if value is not a boolean
576576
*/
577577
@SuppressWarnings("unchecked")
@@ -582,7 +582,7 @@ public boolean getBoolean(String name) {
582582
/**
583583
* Returns the property value as a Timestamp.
584584
*
585-
* @throws DatastoreException if not such property
585+
* @throws DatastoreException if no such property
586586
* @throws ClassCastException if value is not a Timestamp
587587
*/
588588
@SuppressWarnings("unchecked")
@@ -593,7 +593,7 @@ public Timestamp getTimestamp(String name) {
593593
/**
594594
* Returns the property value as a LatLng.
595595
*
596-
* @throws DatastoreException if not such property.
596+
* @throws DatastoreException if no such property.
597597
* @throws ClassCastException if value is not a LatLng.
598598
*/
599599
@SuppressWarnings("unchecked")
@@ -604,7 +604,7 @@ public LatLng getLatLng(String name) {
604604
/**
605605
* Returns the property value as a Key.
606606
*
607-
* @throws DatastoreException if not such property
607+
* @throws DatastoreException if no such property
608608
* @throws ClassCastException if value is not a Key
609609
*/
610610
@SuppressWarnings("unchecked")
@@ -615,7 +615,7 @@ public Key getKey(String name) {
615615
/**
616616
* Returns the property value as an entity.
617617
*
618-
* @throws DatastoreException if not such property
618+
* @throws DatastoreException if no such property
619619
* @throws ClassCastException if value is not an entity
620620
*/
621621
@SuppressWarnings("unchecked")
@@ -626,7 +626,7 @@ public <K extends IncompleteKey> FullEntity<K> getEntity(String name) {
626626
/**
627627
* Returns the property value as a list of values.
628628
*
629-
* @throws DatastoreException if not such property
629+
* @throws DatastoreException if no such property
630630
* @throws ClassCastException if value is not a list of values
631631
*/
632632
@SuppressWarnings("unchecked")
@@ -637,7 +637,7 @@ public <T extends Value<?>> List<T> getList(String name) {
637637
/**
638638
* Returns the property value as a blob.
639639
*
640-
* @throws DatastoreException if not such property
640+
* @throws DatastoreException if no such property
641641
* @throws ClassCastException if value is not a blob
642642
*/
643643
@SuppressWarnings("unchecked")

0 commit comments

Comments
 (0)