Skip to content

Commit

Permalink
Correction of wrongly spelled words.
Browse files Browse the repository at this point in the history
  • Loading branch information
freeze-dolphin committed May 4, 2021
1 parent 51b72d4 commit c48ccc0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static void setupWiki() {
SlimefunItem item = SlimefunItem.getByID(entry.getKey());

if (item != null) {
item.addOficialWikipage(entry.getValue().getAsString());
item.addOfficialWikipage(entry.getValue().getAsString());
}
}
} catch (IOException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ public void postRegister() {
* @param page
* The associated wiki page
*/
public final void addOficialWikipage(@Nonnull String page) {
public final void addOfficialWikipage(@Nonnull String page) {
Validate.notNull(page, "Wiki page cannot be null.");
wikiURL = Optional.of("https://github.com/Slimefun/Slimefun4/wiki/" + page);
}
Expand All @@ -893,7 +893,7 @@ public final void addOficialWikipage(@Nonnull String page) {
* This method returns the wiki page that has been assigned to this item.
* It will return null, if no wiki page was found.
*
* @see SlimefunItem#addOficialWikipage(String)
* @see SlimefunItem#addOfficialWikipage(String)
*
* @return This item's wiki page
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ void testWikiPages() {
Assertions.assertFalse(item.getWikipage().isPresent());

// null should not be a valid argument
Assertions.assertThrows(IllegalArgumentException.class, () -> item.addOficialWikipage(null));
Assertions.assertThrows(IllegalArgumentException.class, () -> item.addOfficialWikipage(null));

item.addOficialWikipage("Test");
item.addOfficialWikipage("Test");

Optional<String> wiki = item.getWikipage();
Assertions.assertTrue(wiki.isPresent());
Expand Down

0 comments on commit c48ccc0

Please sign in to comment.