You need a newline between the paragraph and the comment.
You need to call close() method on your MessageProducer. As per the Java docs:-
<!-- language: lang-none -->
void close()
renders as:
You need to call close() method on your MessageProducer. As per the Java docs:-
void close()
For documentation quotes, I'd not use a code block; I'd use >
block quotes instead, however.
I've edited that answer now to read:
You need to call [`close()` method](http://docs.oracle.com/javaee/6/api/javax/jms/MessageProducer.html#close()) on your `MessageProducer`. As per the Java docs:-
> void close()
> throws JMSException
>
> Closes the message producer.
>
> Since a provider may allocate some resources on behalf of a `MessageProducer` outside the Java virtual machine, clients should close them when they are not needed. Relying on garbage collection to eventually reclaim these resources may not be timely enough.
which formats as:
You need to call close()
method on your MessageProducer
. As per the Java docs:-
void close()
throws JMSException
Closes the message producer.
Since a provider may allocate some resources on behalf of a MessageProducer
outside the Java virtual machine, clients should close them when they are not needed. Relying on garbage collection to eventually reclaim these resources may not be timely enough.
I corrected the documentation quote (it was badly copied), added correct attribution by linking and formatted the throws
line to match the documentation indentation.
Now the method signature is even correctly highlighted.