Skip to content

Commit

Permalink
Fix set mime types (#7)
Browse files Browse the repository at this point in the history
* Make setMimeTypes public in Displayer API.

This makes Displayer#setMimeTypes public. This was the original intent,
but since the method wasn't public it is technically an API addition.

* Fix tests broken by setMimeTypes change.

* Version 0.2.1.
  • Loading branch information
rdblue authored Aug 4, 2017
1 parent ac289cf commit a9a0426
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'java'
apply plugin: 'maven'

group = "jupyter"
version = '0.1.0'
version = '0.2.1'

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/jupyter/Displayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ public abstract class Displayer<T> {
*
* @param types MIME types that are supported by the kernel
*/
void setMimeTypes(String... types) {
public void setMimeTypes(String... types) {
}
}
2 changes: 1 addition & 1 deletion src/test/java/jupyter/TestMimeTypeNotification.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public Map<String, String> display(String obj) {
}

@Override
void setMimeTypes(String... types) {
public void setMimeTypes(String... types) {
mimeTypes = new HashSet<>(Arrays.asList(types));
}
}
Expand Down

0 comments on commit a9a0426

Please sign in to comment.