6

I'm looking through the Alexa SDK. In the documentation here, they have the following:

directivesServices.enqueue(SendDirectiveRequest.\*builder\*().build());

What on earth does that asterisk do? I have never seen one in my life, and I'm curious as to what I've been missing out on.

Mureinik
  • 297,002
  • 52
  • 306
  • 350
Black Dynamite
  • 4,067
  • 5
  • 40
  • 75
  • 5
    It looks like incorrect formatting - someone attempting to use markup within a code snippet, while that is not supported. It's not valid Java. Have you tried to use the code snippet without the asterisks? Did it work? – Erwin Bolwidt May 24 '18 at 02:21
  • 1
    Is it possible they weren't intentional? Maybe they were meant to be asterisks used in markdown to emphasize the code. – Wrokar May 24 '18 at 02:22
  • I think you will get better answers if you posted an issue on that repo. – Sweeper May 24 '18 at 06:02
  • My interpretation would be that this is pseudo-code for "invoke any Builder-methods you need", but it is hard to tell without an actual API reference. – Hulk May 24 '18 at 07:19
  • 1
    seriously? someone messes up some mark-up and this got 5 upvotes? :) SO can be a surprising place sometimes... – Eugene May 24 '18 at 12:18

1 Answers1

1

The asterisks (*) aren't part of Java's syntax.

It's a botched attempt in that page to emphasize the call to SendDirectiveRequest.builder. That line of code should read:

directivesServices.enqueue(SendDirectiveRequest.builder().build());
Mureinik
  • 297,002
  • 52
  • 306
  • 350